diff options
author | Dawid Dziurla <dawidd0811@gmail.com> | 2018-08-28 20:13:01 +0200 |
---|---|---|
committer | Dawid Dziurla <dawidd0811@gmail.com> | 2018-09-03 17:52:05 +0200 |
commit | 2416f585ce24227cc6ab49e19b29e45bb3aa2524 (patch) | |
tree | f8b74fe2fe7ba0ec9ebb9cfb77d047297b8c28cd /pkg/gui/view_helpers.go | |
parent | 741e28d01a95a6bafa442d3642774b0f3817ff7f (diff) |
initial help panel
Diffstat (limited to 'pkg/gui/view_helpers.go')
-rw-r--r-- | pkg/gui/view_helpers.go | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/pkg/gui/view_helpers.go b/pkg/gui/view_helpers.go index fd810220b..9cebbf3c7 100644 --- a/pkg/gui/view_helpers.go +++ b/pkg/gui/view_helpers.go @@ -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 { |