diff options
author | Jesse Duffield <jessedduffield@gmail.com> | 2020-11-28 13:14:48 +1100 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2020-11-28 20:48:17 +1100 |
commit | da3b0bf7c8aa6202d5eb9c8178f6648bc695336a (patch) | |
tree | cd0666ae4253469f8f2f1e349357be37bfb3d571 /pkg/gui/view_helpers.go | |
parent | 90ade3225f55652d40c6f0266e50f5328390f02b (diff) |
Start on supporting auto-suggestions when checking out a branch
switch to other fuzzy package with no dependencies
Diffstat (limited to 'pkg/gui/view_helpers.go')
-rw-r--r-- | pkg/gui/view_helpers.go | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/pkg/gui/view_helpers.go b/pkg/gui/view_helpers.go index 32d1f0b73..51947837d 100644 --- a/pkg/gui/view_helpers.go +++ b/pkg/gui/view_helpers.go @@ -259,6 +259,11 @@ func (gui *Gui) getMainView() *gocui.View { return v } +func (gui *Gui) getSuggestionsView() *gocui.View { + v, _ := gui.g.View("suggestions") + return v +} + func (gui *Gui) getSecondaryView() *gocui.View { v, _ := gui.g.View("secondary") return v @@ -415,7 +420,7 @@ func (gui *Gui) clearEditorView(v *gocui.View) { func (gui *Gui) onViewTabClick(viewName string, tabIndex int) error { context := gui.ViewTabContextMap[viewName][tabIndex].contexts[0] - return gui.switchContext(context) + return gui.pushContext(context) } func (gui *Gui) handleNextTab(g *gocui.Gui, v *gocui.View) error { |