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 visible but unselected, selected it.
|
||||||
If popup is focused, kill it."
|
If popup is focused, kill it."
|
||||||
(interactive)
|
(interactive)
|
||||||
(let* ((buffer-name
|
(let ((buffer
|
||||||
(get-buffer-create
|
(get-buffer-create
|
||||||
(format "*doom:shell-popup:%s*"
|
(format "*doom:shell-popup:%s*"
|
||||||
(if (bound-and-true-p persp-mode)
|
(if (bound-and-true-p persp-mode)
|
||||||
(safe-persp-name (get-current-persp))
|
(safe-persp-name (get-current-persp))
|
||||||
"main")))))
|
"main")))))
|
||||||
(if-let (win (get-buffer-window buffer))
|
(if-let (win (get-buffer-window buffer))
|
||||||
(if (eq (selected-window) win)
|
(if (eq (selected-window) win)
|
||||||
(let (confirm-kill-processes)
|
(let (confirm-kill-processes)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue