Merge pull request #533 from jcf/patch-1

Add missing buffer name to kill confirmation
This commit is contained in:
Henrik Lissner 2018-04-17 20:58:14 -04:00 committed by GitHub
commit bdac98c2c6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -597,7 +597,8 @@ windows, switch to `doom-fallback-buffer'. Otherwise, delegate to original
((doom-real-buffer-p buf)
(if (and buffer-file-name
(buffer-modified-p buf)
(not (y-or-n-p "Buffer %s is modified; kill anyway?")))
(not (y-or-n-p
(format "Buffer %s is modified; kill anyway?" buf))))
(message "Aborted")
(set-buffer-modified-p nil)
(when (or ;; if there aren't more real buffers than visible buffers,