From fee55283094e27028a73fad31728be373ec6311a Mon Sep 17 00:00:00 2001 From: Zachary Yedidia Date: Tue, 24 Mar 2020 10:22:10 -0400 Subject: [PATCH] Fix term emulator crash if invalid exec given Ref #1583 --- internal/action/command.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/internal/action/command.go b/internal/action/command.go index 64d0aab8..cbfdec29 100644 --- a/internal/action/command.go +++ b/internal/action/command.go @@ -821,7 +821,11 @@ func (h *BufPane) TermCmd(args []string) { term := func(i int, newtab bool) { t := new(shell.Terminal) - t.Start(args, false, true, nil, nil) + err := t.Start(args, false, true, nil, nil) + if err != nil { + InfoBar.Error(err) + return + } id := h.ID() if newtab {