1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-07-31 14:24:25 +03:00

initial help panel

This commit is contained in:
Dawid Dziurla
2018-08-28 20:13:01 +02:00
parent 741e28d01a
commit 2416f585ce
5 changed files with 87 additions and 1 deletions

View File

@ -145,7 +145,11 @@ func (gui *Gui) switchFocus(g *gocui.Gui, oldView, newView *gocui.View) error {
return err
}
g.Cursor = newView.Editable
return gui.newLineFocused(g, newView)
if newView.Name() != "help" {
return gui.newLineFocused(g, newView)
}
return nil
}
func (gui *Gui) getItemPosition(v *gocui.View) int {