Fix kill-this-buffer asking to save twice
This commit is contained in:
parent
3080b68c84
commit
a05c4cca6c
1 changed files with 1 additions and 0 deletions
|
@ -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)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue