diff options
author | Jesse Duffield <jessedduffield@gmail.com> | 2023-04-15 14:51:11 +1000 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2023-04-30 13:19:53 +1000 |
commit | a5c72d056ddbd639db3597ffb19a60e0cbae1826 (patch) | |
tree | 48cc98f6ec47aa63597cf2c62995e4b7bb34bf36 /pkg/gui/context.go | |
parent | 8a86de85c86236dc0bf72e7005d25b4772237a1f (diff) |
ensure initial context is set when entering submodule
Diffstat (limited to 'pkg/gui/context.go')
-rw-r--r-- | pkg/gui/context.go | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/pkg/gui/context.go b/pkg/gui/context.go index 4c403973f..28dc5e2b2 100644 --- a/pkg/gui/context.go +++ b/pkg/gui/context.go @@ -23,12 +23,11 @@ type ContextMgr struct { } func NewContextMgr( - initialContext types.Context, gui *Gui, allContexts *context.ContextTree, ) *ContextMgr { return &ContextMgr{ - ContextStack: []types.Context{initialContext}, + ContextStack: []types.Context{}, RWMutex: sync.RWMutex{}, gui: gui, allContexts: allContexts, |