From f3c7dac99790ca14b2178c850a39e7741a0ca418 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Sat, 26 May 2018 23:25:57 +0200 Subject: [PATCH] Don't protect visible buffers that start with an asterix --- core/core-ui.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/core-ui.el b/core/core-ui.el index e0a96a070..cf000b55b 100644 --- a/core/core-ui.el +++ b/core/core-ui.el @@ -637,7 +637,7 @@ confirmation." "Don't kill the current buffer if it is visible in another window (bury it instead)." (not (and (delq (selected-window) (get-buffer-window-list nil nil t)) - (not (equal (substring (buffer-name) 0 1) " "))))) + (not (member (substring (buffer-name) 0 1) '(" " "*")))))) (defun doom|protect-fallback-buffer () "Don't kill the scratch buffer."