mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-03 12:27:26 -05:00
Fix doom|protect-visible-buffers protecting temporary buffers
This commit is contained in:
@ -627,7 +627,8 @@ confirmation."
|
|||||||
(defun doom|protect-visible-buffers ()
|
(defun doom|protect-visible-buffers ()
|
||||||
"Don't kill the current buffer if it is visible in another window (bury it
|
"Don't kill the current buffer if it is visible in another window (bury it
|
||||||
instead)."
|
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 ()
|
(defun doom|protect-fallback-buffer ()
|
||||||
"Don't kill the scratch buffer."
|
"Don't kill the scratch buffer."
|
||||||
|
Reference in New Issue
Block a user