summaryrefslogtreecommitdiffstats
path: root/pkg/gui/keybindings.go
diff options
context:
space:
mode:
authorJesse Duffield <jessedduffield@gmail.com>2023-04-15 14:51:11 +1000
committerJesse Duffield <jessedduffield@gmail.com>2023-04-30 13:19:53 +1000
commita5c72d056ddbd639db3597ffb19a60e0cbae1826 (patch)
tree48cc98f6ec47aa63597cf2c62995e4b7bb34bf36 /pkg/gui/keybindings.go
parent8a86de85c86236dc0bf72e7005d25b4772237a1f (diff)
ensure initial context is set when entering submodule
Diffstat (limited to 'pkg/gui/keybindings.go')
-rw-r--r--pkg/gui/keybindings.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/pkg/gui/keybindings.go b/pkg/gui/keybindings.go
index 6095e6431..c4715de52 100644
--- a/pkg/gui/keybindings.go
+++ b/pkg/gui/keybindings.go
@@ -52,8 +52,8 @@ func (self *Gui) GetCheatsheetKeybindings() []*types.Binding {
self.helpers = helpers.NewStubHelpers()
self.State = &GuiRepoState{}
self.State.Contexts = self.contextTree()
- self.State.ContextMgr = NewContextMgr(nil, self, self.State.Contexts)
- self.resetControllers()
+ self.State.ContextMgr = NewContextMgr(self, self.State.Contexts)
+ self.resetHelpersAndControllers()
bindings, _ := self.GetInitialKeybindings()
return bindings
}