]> git.lizzy.rs Git - micro.git/blobdiff - internal/action/terminal_supported.go
Fix cursor position change after CopyLine command (#2353)
[micro.git] / internal / action / terminal_supported.go
index bb978a15800f0f228abf28f6a12fbd5943143aa5..4255536c09863f4c672a7dcecb338fc68871e74a 100644 (file)
@@ -24,7 +24,10 @@ func RunTermEmulator(h *BufPane, input string, wait bool, getOutput bool, callba
        }
 
        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()
        id := MainTab().Panes[0].ID()