term/shell: fix void-variable dir #2095

This commit is contained in:
Henrik Lissner 2019-11-21 13:54:37 -05:00
parent 36ba16b295
commit 0212bb95f8
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -54,7 +54,8 @@ If popup is focused, kill it."
(format "*doom:shell-popup:%s*"
(if (bound-and-true-p persp-mode)
(safe-persp-name (get-current-persp))
"main")))))
"main"))))
(dir default-directory))
(if-let (win (get-buffer-window buffer))
(if (eq (selected-window) win)
(let (confirm-kill-processes)