From 645c856de0cd9e0e419e22b7c00f3146009b55c5 Mon Sep 17 00:00:00 2001 From: StrawberryTea Date: Sat, 14 Oct 2023 14:21:02 -0500 Subject: [PATCH] fix(popup): allow killing popup buffers Currently, `SPC b k` does not allow us to kill popup buffers. If we are say using a comint/eshell/eat buffer and we borked the state while testing hooks or we sent EOF to the underlying process, our intention with `SPC b k` is to kill the underlying buffer. --- lisp/doom-ui.el | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/lisp/doom-ui.el b/lisp/doom-ui.el index ef5091ed0..2bfdc3d8c 100644 --- a/lisp/doom-ui.el +++ b/lisp/doom-ui.el @@ -210,10 +210,7 @@ windows, switch to `doom-fallback-buffer'. Otherwise, delegate to original `kill-current-buffer'." :before-until #'kill-current-buffer (let ((buf (current-buffer))) - (cond ((window-dedicated-p) - (delete-window) - t) - ((eq buf (doom-fallback-buffer)) + (cond ((eq buf (doom-fallback-buffer)) (message "Can't kill the fallback buffer.") t) ((doom-real-buffer-p buf)