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.
This commit is contained in:
parent
78b85b8a72
commit
645c856de0
1 changed files with 1 additions and 4 deletions
|
@ -210,10 +210,7 @@ windows, switch to `doom-fallback-buffer'. Otherwise, delegate to original
|
||||||
`kill-current-buffer'."
|
`kill-current-buffer'."
|
||||||
:before-until #'kill-current-buffer
|
:before-until #'kill-current-buffer
|
||||||
(let ((buf (current-buffer)))
|
(let ((buf (current-buffer)))
|
||||||
(cond ((window-dedicated-p)
|
(cond ((eq buf (doom-fallback-buffer))
|
||||||
(delete-window)
|
|
||||||
t)
|
|
||||||
((eq buf (doom-fallback-buffer))
|
|
||||||
(message "Can't kill the fallback buffer.")
|
(message "Can't kill the fallback buffer.")
|
||||||
t)
|
t)
|
||||||
((doom-real-buffer-p buf)
|
((doom-real-buffer-p buf)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue