term/shell: fix void-variable buffer error on +shell/toggle

This commit is contained in:
Henrik Lissner 2019-08-05 11:29:22 -04:00
parent 42869ece55
commit 6647ebc736
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -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)