Fix `+eshell/split-window' error

`+eshell/split-window' eventually calls `+eshell--bury-buffer', which
invoked `+eshell/here' with `t' instead of a command string, erroring.
This commit is contained in:
Nikita Bloshchanevich 2020-12-29 21:06:45 +01:00
parent 0c9256411d
commit f40f025fb2

View file

@ -28,7 +28,7 @@
(switch-to-buffer (doom-fallback-buffer))) (switch-to-buffer (doom-fallback-buffer)))
(when +eshell-enable-new-shell-on-split (when +eshell-enable-new-shell-on-split
(let ((default-directory directory)) (let ((default-directory directory))
(when-let (win (get-buffer-window (+eshell/here t))) (when-let (win (get-buffer-window (+eshell/here)))
(set-window-dedicated-p win dedicated-p)))))) (set-window-dedicated-p win dedicated-p))))))
(defun +eshell--setup-window (window &optional flag) (defun +eshell--setup-window (window &optional flag)