diff --git a/pkg/gui/status_panel.go b/pkg/gui/status_panel.go index b14dc141c..18f90c2da 100644 --- a/pkg/gui/status_panel.go +++ b/pkg/gui/status_panel.go @@ -81,17 +81,17 @@ func (gui *Gui) handleStatusClick(g *gocui.Gui, v *gocui.View) error { } } - return gui.handleStatusSelect(gui.g, v) + return gui.handleStatusSelect() } -func (gui *Gui) handleStatusSelect(g *gocui.Gui, v *gocui.View) error { +func (gui *Gui) handleStatusSelect() error { if gui.popupPanelFocused() { return nil } gui.State.SplitMainPanel = false - if _, err := gui.g.SetCurrentView(v.Name()); err != nil { + if _, err := gui.g.SetCurrentView("status"); err != nil { return err } diff --git a/pkg/gui/view_helpers.go b/pkg/gui/view_helpers.go index 66c601d95..2ab2bb8d3 100644 --- a/pkg/gui/view_helpers.go +++ b/pkg/gui/view_helpers.go @@ -221,7 +221,7 @@ func (gui *Gui) newLineFocused(g *gocui.Gui, v *gocui.View) error { case "menu": return gui.handleMenuSelect() case "status": - return gui.handleStatusSelect(g, v) + return gui.handleStatusSelect() case "files": return gui.focusAndSelectFile(g, v) case "branches":