Fix #2100: shell modeline doesn't stay hidden

This commit is contained in:
Henrik Lissner 2019-11-22 12:54:58 -05:00
parent 34500c9177
commit aa19eeed0f
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -69,7 +69,7 @@ If popup is focused, kill it."
(with-current-buffer (pop-to-buffer buffer)
(if (not (eq major-mode 'shell-mode))
(shell buffer)
(erase-buffer)
(run-mode-hooks 'shell-mode-hook)
(cd dir))
(let ((process (get-buffer-process (current-buffer))))
(set-process-sentinel process #'+shell--sentinel)