summaryrefslogtreecommitdiffstats
path: root/pkg/gui/gui.go
diff options
context:
space:
mode:
authorJesse Duffield <jessedduffield@gmail.com>2020-08-19 09:05:43 +1000
committerJesse Duffield <jessedduffield@gmail.com>2020-08-23 14:29:18 +1000
commit2fdadd383a2609921abd4aeb99e67bd5f1bbc0fc (patch)
treef52567d882bcf505ef05bfe9efed51eee28157ac /pkg/gui/gui.go
parent9a2dc3fe150a03ccb4f086b05d8a8249c9e6c37f (diff)
introduce new approach to handling tab states
Diffstat (limited to 'pkg/gui/gui.go')
-rw-r--r--pkg/gui/gui.go6
1 files changed, 4 insertions, 2 deletions
diff --git a/pkg/gui/gui.go b/pkg/gui/gui.go
index cc083b4de..818cfbf60 100644
--- a/pkg/gui/gui.go
+++ b/pkg/gui/gui.go
@@ -96,8 +96,9 @@ type Gui struct {
// when lazygit is opened outside a git directory we want to open to the most
// recent repo with the recent repos popup showing
- showRecentRepos bool
- Contexts ContextTree
+ showRecentRepos bool
+ Contexts ContextTree
+ ViewTabContextMap map[string]tabContexts
}
// for now the staging panel state, unlike the other panel states, is going to be
@@ -308,6 +309,7 @@ func NewGui(log *logrus.Entry, gitCommand *commands.GitCommand, oSCommand *comma
gui.resetState()
gui.State.FilterPath = filterPath
gui.Contexts = gui.contextTree()
+ gui.ViewTabContextMap = gui.viewTabContextMap()
gui.watchFilesForChanges()