From 3853fdbf8d2c3644e781e7fd0919a734a58e5577 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Thu, 17 May 2018 15:14:56 +0200 Subject: [PATCH] Fix doom|protect-visible-buffers protecting temporary buffers --- core/core-ui.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/core-ui.el b/core/core-ui.el index 044e24d60..c78811ea6 100644 --- a/core/core-ui.el +++ b/core/core-ui.el @@ -627,7 +627,8 @@ confirmation." (defun doom|protect-visible-buffers () "Don't kill the current buffer if it is visible in another window (bury it instead)." - (not (delq (selected-window) (get-buffer-window-list nil nil t)))) + (not (and (delq (selected-window) (get-buffer-window-list nil nil t)) + (not (equal (substring (buffer-name) 0 1) " "))))) (defun doom|protect-fallback-buffer () "Don't kill the scratch buffer."