Fix doom|protect-visible-buffers protecting temporary buffers
This commit is contained in:
parent
bed5a2f305
commit
3853fdbf8d
1 changed files with 2 additions and 1 deletions
|
@ -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."
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue