Check error in terminal emulator

This commit is contained in:
Zachary Yedidia
2020-07-27 17:43:55 -04:00
parent 015e7c7b83
commit 95ec55fbbf

View File

@@ -24,7 +24,10 @@ func RunTermEmulator(h *BufPane, input string, wait bool, getOutput bool, callba
} }
t := new(shell.Terminal) t := new(shell.Terminal)
t.Start(args, getOutput, wait, callback, userargs) err = t.Start(args, getOutput, wait, callback, userargs)
if err != nil {
return err
}
h.AddTab() h.AddTab()
id := MainTab().Panes[0].ID() id := MainTab().Panes[0].ID()