summaryrefslogtreecommitdiffstats
path: root/pkg/gui/gui.go
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/gui/gui.go')
-rw-r--r--pkg/gui/gui.go10
1 files changed, 6 insertions, 4 deletions
diff --git a/pkg/gui/gui.go b/pkg/gui/gui.go
index 1c0178fe8..cc083b4de 100644
--- a/pkg/gui/gui.go
+++ b/pkg/gui/gui.go
@@ -282,10 +282,11 @@ func (gui *Gui) resetState() {
EditHistory: stack.New(),
},
},
- SideView: nil,
- Ptmx: nil,
- FilterPath: prevFilterPath,
- Diff: prevDiff,
+ SideView: nil,
+ Ptmx: nil,
+ FilterPath: prevFilterPath,
+ Diff: prevDiff,
+ ViewContextMap: gui.initialViewContextMap(),
}
}
@@ -306,6 +307,7 @@ func NewGui(log *logrus.Entry, gitCommand *commands.GitCommand, oSCommand *comma
gui.resetState()
gui.State.FilterPath = filterPath
+ gui.Contexts = gui.contextTree()
gui.watchFilesForChanges()