Fix term emulator crash if invalid exec given

Ref #1583
This commit is contained in:
Zachary Yedidia 2020-03-24 10:22:10 -04:00
parent 671a188802
commit fee5528309

View File

@ -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 {