term/shell: fix void-variable buffer error on +shell/toggle
This commit is contained in:
parent
42869ece55
commit
6647ebc736
1 changed files with 6 additions and 6 deletions
|
@ -49,12 +49,12 @@ prompt."
|
|||
If popup is visible but unselected, selected it.
|
||||
If popup is focused, kill it."
|
||||
(interactive)
|
||||
(let* ((buffer-name
|
||||
(get-buffer-create
|
||||
(format "*doom:shell-popup:%s*"
|
||||
(if (bound-and-true-p persp-mode)
|
||||
(safe-persp-name (get-current-persp))
|
||||
"main")))))
|
||||
(let ((buffer
|
||||
(get-buffer-create
|
||||
(format "*doom:shell-popup:%s*"
|
||||
(if (bound-and-true-p persp-mode)
|
||||
(safe-persp-name (get-current-persp))
|
||||
"main")))))
|
||||
(if-let (win (get-buffer-window buffer))
|
||||
(if (eq (selected-window) win)
|
||||
(let (confirm-kill-processes)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue