1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-11-25 22:32:13 +02:00

ensure we retain state when returning to submodule parent

This commit is contained in:
Jesse Duffield
2022-02-13 11:35:42 +11:00
parent 94d66b267d
commit 943a8e83da
2 changed files with 20 additions and 5 deletions

View File

@@ -137,6 +137,12 @@ func (self *ViewContextMap) Set(viewName string, context types.Context) {
self.content[viewName] = context
}
func (self *ViewContextMap) Entries() map[string]types.Context {
self.Lock()
defer self.Unlock()
return self.content
}
type TabContext struct {
Tab string
Contexts []types.Context