1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-07-30 03:23:08 +03:00

Record current directory on switch

This commit is contained in:
David Roman
2022-03-15 14:12:26 +01:00
committed by Jesse Duffield
parent 950bb5090d
commit b8fc829f86
5 changed files with 27 additions and 7 deletions

View File

@ -84,6 +84,10 @@ func (gui *Gui) dispatchSwitchToRepo(path string, reuse bool) error {
gui.Mutexes.RefreshingFilesMutex.Lock()
defer gui.Mutexes.RefreshingFilesMutex.Unlock()
if err := gui.recordCurrentDirectory(); err != nil {
return err
}
gui.resetState("", reuse)
return nil