mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-03 12:27:26 -05:00
Fix kill-this-buffer asking to save twice
This commit is contained in:
@ -557,6 +557,7 @@ windows, switch to `doom-fallback-buffer'. Otherwise, delegate to original
|
|||||||
(if (and (buffer-modified-p buf)
|
(if (and (buffer-modified-p buf)
|
||||||
(not (y-or-n-p "Buffer %s is modified; kill anyway?")))
|
(not (y-or-n-p "Buffer %s is modified; kill anyway?")))
|
||||||
(message "Aborted")
|
(message "Aborted")
|
||||||
|
(set-buffer-modified-p nil)
|
||||||
(when (or ;; if there aren't more real buffers than visible buffers,
|
(when (or ;; if there aren't more real buffers than visible buffers,
|
||||||
;; then there are no real, non-visible buffers left.
|
;; then there are no real, non-visible buffers left.
|
||||||
(not (cl-set-difference (doom-real-buffer-list)
|
(not (cl-set-difference (doom-real-buffer-list)
|
||||||
|
Reference in New Issue
Block a user