]> git.lizzy.rs Git - micro.git/blobdiff - internal/action/terminal_supported.go
better top
[micro.git] / internal / action / terminal_supported.go
index 4df8611543016de66d5a09b2bcbaa8e8caf5462c..cb5cc3dcd910a223146be7e84f8ce5a5d34da8b8 100644 (file)
@@ -30,7 +30,12 @@ func RunTermEmulator(h *BufPane, input string, wait bool, getOutput bool, callba
        id := MainTab().Panes[0].ID()
 
        v := h.GetView()
-       MainTab().Panes[0] = NewTermPane(v.X, v.Y, v.Width, v.Height, t, id, MainTab())
+
+       tp, err := NewTermPane(v.X, v.Y, v.Width, v.Height, t, id, MainTab())
+       if err != nil {
+               return err
+       }
+       MainTab().Panes[0] = tp
        MainTab().SetActive(0)
 
        return nil