summaryrefslogtreecommitdiffstats
path: root/pkg/gui/gui.go
diff options
context:
space:
mode:
authorJesse Duffield <jessedduffield@gmail.com>2023-07-28 18:53:00 +1000
committerJesse Duffield <jessedduffield@gmail.com>2023-07-30 18:35:24 +1000
commit06be88aef7fc011a1ac1c04ce094b4aafd7bad69 (patch)
tree540cee503566c4d4c24e250b792c8fedf04d6e88 /pkg/gui/gui.go
parent4c5b1574f147fe2005bcd30bbb5dc106c4838b92 (diff)
Use fields rather than methods on worktrees
I would prefer to use methods to keep things immutable but I'd rather be consistent with the other models and update them all at once
Diffstat (limited to 'pkg/gui/gui.go')
-rw-r--r--pkg/gui/gui.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/gui/gui.go b/pkg/gui/gui.go
index 42a29d500..8db98238c 100644
--- a/pkg/gui/gui.go
+++ b/pkg/gui/gui.go
@@ -374,7 +374,7 @@ func (gui *Gui) resetState(startArgs appTypes.StartArgs) types.Context {
SearchState: types.NewSearchState(),
}
- gui.RepoStateMap[Repo(currentDir)] = gui.State
+ gui.RepoStateMap[Repo(worktreePath)] = gui.State
return initialContext(contextTree, startArgs)
}