summaryrefslogtreecommitdiffstats
path: root/pkg/gui/gui.go
diff options
context:
space:
mode:
authorJesse Duffield <jessedduffield@gmail.com>2023-03-23 22:05:25 +1100
committerJesse Duffield <jessedduffield@gmail.com>2023-04-30 13:19:53 +1000
commitf8c9ce33c2cdbefac27e6af409a10aa539d4037a (patch)
treee9f8dbb848baf6ca5681864ce7d19a0dd490f3e0 /pkg/gui/gui.go
parent71753770ad6da851b6584b6868fd03a0dba6e5c8 (diff)
move more actions into controller
Diffstat (limited to 'pkg/gui/gui.go')
-rw-r--r--pkg/gui/gui.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/pkg/gui/gui.go b/pkg/gui/gui.go
index c0448cacd..45c3ff44e 100644
--- a/pkg/gui/gui.go
+++ b/pkg/gui/gui.go
@@ -347,8 +347,8 @@ func (gui *Gui) resetState(startArgs appTypes.StartArgs, reuseState bool) {
Diffing: diffing.New(),
},
ScreenMode: initialScreenMode,
- // TODO: put contexts in the context manager
- ContextMgr: NewContextMgr(initialContext, gui),
+ // TODO: only use contexts from context manager
+ ContextMgr: NewContextMgr(initialContext, gui, contextTree),
Contexts: contextTree,
WindowViewNameMap: initialWindowViewNameMap(contextTree),
}