summaryrefslogtreecommitdiffstats
path: root/pkg/gui/view_helpers.go
diff options
context:
space:
mode:
authorJesse Duffield <jessedduffield@gmail.com>2021-04-03 14:36:22 +1100
committerJesse Duffield <jessedduffield@gmail.com>2021-04-06 19:34:32 +1000
commitfafd5234bd7be6916e00712a3a138bf2ee92e99b (patch)
tree8e1324ee5297b5026795bef56f0a0428dc07fb43 /pkg/gui/view_helpers.go
parent8cb10f76e46ef2c9ed413b7c6260b6678a72a662 (diff)
refactor to get view tab context map into gui state
Diffstat (limited to 'pkg/gui/view_helpers.go')
-rw-r--r--pkg/gui/view_helpers.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/gui/view_helpers.go b/pkg/gui/view_helpers.go
index 3afbf7b09..6fc5fda04 100644
--- a/pkg/gui/view_helpers.go
+++ b/pkg/gui/view_helpers.go
@@ -431,7 +431,7 @@ func (gui *Gui) clearEditorView(v *gocui.View) {
}
func (gui *Gui) onViewTabClick(viewName string, tabIndex int) error {
- context := gui.ViewTabContextMap[viewName][tabIndex].contexts[0]
+ context := gui.State.ViewTabContextMap[viewName][tabIndex].contexts[0]
return gui.pushContext(context)
}