(Emacs/elisp)~Fix bug in +eshell/open where named eshell instances weren't created

This happened because (eshell) with no arguments would not lookup
eshell-buffer-name.
This commit is contained in:
2024-09-23 17:08:28 +01:00
parent 700bc7c49f
commit 576cb6993b

View File

@@ -79,7 +79,7 @@ or a currently opened one, naming it in the process."
(result (switch-to-buffer (cdr result)))
((not (string= answer ""))
(let ((eshell-buffer-name (format "*%s-eshell*" answer)))
(eshell)))
(eshell t)))
(t
(eshell))))))