Don't protect visible buffers that start with an asterix

This commit is contained in:
Henrik Lissner 2018-05-26 23:25:57 +02:00
parent b5ec39f0ec
commit f3c7dac997
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -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."