Don't prompt to save for non-file-visiting buffers on kill-this-buffer
This commit is contained in:
parent
e7331e9026
commit
57065c4a71
1 changed files with 2 additions and 1 deletions
|
@ -576,7 +576,8 @@ windows, switch to `doom-fallback-buffer'. Otherwise, delegate to original
|
|||
((eq buf (doom-fallback-buffer))
|
||||
(message "Can't kill the fallback buffer."))
|
||||
((doom-real-buffer-p buf)
|
||||
(if (and (buffer-modified-p buf)
|
||||
(if (and buffer-file-name
|
||||
(buffer-modified-p buf)
|
||||
(not (y-or-n-p "Buffer %s is modified; kill anyway?")))
|
||||
(message "Aborted")
|
||||
(set-buffer-modified-p nil)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue