Fix eshell buffers omitted from workspace buffers
The mode was set before the window was displayed, which is where persp-mode's check is.
This commit is contained in:
parent
ec6372ef66
commit
48c9936f8d
1 changed files with 2 additions and 2 deletions
|
@ -79,10 +79,10 @@
|
|||
"Open eshell in the current buffer."
|
||||
(interactive)
|
||||
(let ((buf (+eshell--buffer (eq major-mode 'eshell-mode))))
|
||||
(switch-to-buffer buf)
|
||||
(+eshell--set-window (get-buffer-window buf) t)
|
||||
(with-current-buffer buf
|
||||
(unless (eq major-mode 'eshell-mode) (eshell-mode)))
|
||||
(switch-to-buffer buf)
|
||||
(+eshell--set-window (get-buffer-window buf) t)
|
||||
(when command
|
||||
(+eshell-run-command command))))
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue