summaryrefslogtreecommitdiffstats
path: root/pkg/gui/context.go
diff options
context:
space:
mode:
authorJesse Duffield <jessedduffield@gmail.com>2020-08-17 22:00:23 +1000
committerJesse Duffield <jessedduffield@gmail.com>2020-08-23 14:29:18 +1000
commitc730271e0961d15e8f90381af35fc0d6230a586e (patch)
tree61fda770d6847e03e89697f84a4f70cc0c1db919 /pkg/gui/context.go
parentac0eedda91ae20992ad106d98fdd164d4264f6f2 (diff)
minor update
Diffstat (limited to 'pkg/gui/context.go')
-rw-r--r--pkg/gui/context.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/pkg/gui/context.go b/pkg/gui/context.go
index f0f157b1f..5ab4bfe1b 100644
--- a/pkg/gui/context.go
+++ b/pkg/gui/context.go
@@ -314,6 +314,7 @@ func (gui *Gui) createContextTree() {
"files": gui.Contexts.Files.Context,
"branches": gui.Contexts.Branches.Context,
"commits": gui.Contexts.BranchCommits.Context,
+ "commitFiles": gui.Contexts.BranchCommits.Files.Context,
"stash": gui.Contexts.Stash.Context,
"menu": gui.Contexts.Menu.Context,
"confirmation": gui.Contexts.Confirmation.Context,
@@ -323,6 +324,8 @@ func (gui *Gui) createContextTree() {
"secondary": gui.Contexts.Normal.Context,
}
+ // arguably we should only have our ViewContextMap and we should do away with
+ // contexts on views, or vice versa
for viewName, context := range gui.State.ViewContextMap {
// see if the view exists. If it does, set the context on it
view, err := gui.g.View(viewName)