Skip to content

Commit 7056133

Browse files
committed
fix: starting shell
1 parent b724be7 commit 7056133

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

multi-shell.el

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,9 @@
6969
(`eshell (eshell))
7070
(t (user-error "[ERROR] Invalid shell type: %s" multi-shell-prefer-shell-type)))))
7171

72+
;; XXX: There is a bug when starting `shell' the first time.
73+
(multi-shell--run-shell-procss-by-type)
74+
7275
(defun multi-shell--form-name (base)
7376
"Form the shell name by BASE."
7477
(format "*%s*" base))
@@ -203,7 +206,7 @@
203206
(rename-buffer name)
204207
(setq-local truncate-lines nil)
205208
(push (cons id (current-buffer)) multi-shell--live-shells))
206-
(funcall multi-shell-display-function name)))
209+
(ignore-errors (funcall multi-shell-display-function name))))
207210

208211
(defun multi-shell--kill-buffer (fnc &rest args)
209212
"Advice execute around `kill-buffer' function with FNC and ARGS."

0 commit comments

Comments
 (0)