1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-01-10 04:07:18 +02:00

status view

This commit is contained in:
Jesse Duffield 2020-08-15 16:54:02 +10:00
parent cc872b0444
commit 50d5b9e8e7
2 changed files with 4 additions and 4 deletions

View File

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

View File

@ -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":