summaryrefslogtreecommitdiffstats
path: root/pkg/gui/quitting.go
diff options
context:
space:
mode:
authorJesse Duffield <jessedduffield@gmail.com>2021-04-03 13:43:43 +1100
committerJesse Duffield <jessedduffield@gmail.com>2021-04-06 19:34:32 +1000
commitf1d7f59e497a2da9066494d04f26e1ff00a0e4ee (patch)
treef51b629766de0778f4e6b9cd37f44af9db0edaad /pkg/gui/quitting.go
parentbc9a99387f68afb24863d17ab4d29c1686843a76 (diff)
switching repos without restarting the gui
Diffstat (limited to 'pkg/gui/quitting.go')
-rw-r--r--pkg/gui/quitting.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/pkg/gui/quitting.go b/pkg/gui/quitting.go
index bd2f09f66..778db1a61 100644
--- a/pkg/gui/quitting.go
+++ b/pkg/gui/quitting.go
@@ -49,13 +49,13 @@ func (gui *Gui) handleTopLevelReturn() error {
}
}
- repoPathStack := gui.State.RepoPathStack
+ repoPathStack := gui.RepoPathStack
if len(repoPathStack) > 0 {
n := len(repoPathStack) - 1
path := repoPathStack[n]
- gui.State.RepoPathStack = repoPathStack[:n]
+ gui.RepoPathStack = repoPathStack[:n]
return gui.dispatchSwitchToRepo(path)
}