From a05c4cca6cdf659152ca249c1f2372a4a42ca800 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Tue, 13 Feb 2018 17:53:11 -0500 Subject: [PATCH] Fix kill-this-buffer asking to save twice --- core/core-ui.el | 1 + 1 file changed, 1 insertion(+) diff --git a/core/core-ui.el b/core/core-ui.el index 67d165933..3613e4aa4 100644 --- a/core/core-ui.el +++ b/core/core-ui.el @@ -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)