Merge pull request #1267 from flatwhatson/fix-kill-buffer

Fixes for doom/kill-this-buffer-in-all-windows
This commit is contained in:
Henrik Lissner 2019-03-16 14:08:04 -04:00 committed by GitHub
commit 4028f36beb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -251,7 +251,8 @@ If DONT-SAVE, don't prompt to save modified buffers (discarding their changes)."
(set-buffer-modified-p nil)))
(kill-buffer buffer)
(cl-loop for win in windows
if (doom-real-buffer-p (window-buffer win))
if (and (window-live-p win)
(doom-unreal-buffer-p (window-buffer win)))
do (with-selected-window win (previous-buffer)))))
;;;###autoload