mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-01-10 04:07:18 +02:00
status view
This commit is contained in:
parent
cc872b0444
commit
50d5b9e8e7
@ -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() {
|
if gui.popupPanelFocused() {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
gui.State.SplitMainPanel = false
|
gui.State.SplitMainPanel = false
|
||||||
|
|
||||||
if _, err := gui.g.SetCurrentView(v.Name()); err != nil {
|
if _, err := gui.g.SetCurrentView("status"); err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -221,7 +221,7 @@ func (gui *Gui) newLineFocused(g *gocui.Gui, v *gocui.View) error {
|
|||||||
case "menu":
|
case "menu":
|
||||||
return gui.handleMenuSelect()
|
return gui.handleMenuSelect()
|
||||||
case "status":
|
case "status":
|
||||||
return gui.handleStatusSelect(g, v)
|
return gui.handleStatusSelect()
|
||||||
case "files":
|
case "files":
|
||||||
return gui.focusAndSelectFile(g, v)
|
return gui.focusAndSelectFile(g, v)
|
||||||
case "branches":
|
case "branches":
|
||||||
|
Loading…
Reference in New Issue
Block a user