Fix kill-this-buffer asking to save twice

This commit is contained in:
Henrik Lissner 2018-02-13 17:53:11 -05:00
parent 3080b68c84
commit a05c4cca6c
No known key found for this signature in database
GPG Key ID: 5F6C0EA160557395

View File

@ -557,6 +557,7 @@ windows, switch to `doom-fallback-buffer'. Otherwise, delegate to original
(if (and (buffer-modified-p buf)
(not (y-or-n-p "Buffer %s is modified; kill anyway?")))
(message "Aborted")
(set-buffer-modified-p nil)
(when (or ;; if there aren't more real buffers than visible buffers,
;; then there are no real, non-visible buffers left.
(not (cl-set-difference (doom-real-buffer-list)