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)