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:
committed by
Jesse Duffield
parent
950bb5090d
commit
b8fc829f86
@ -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
|
||||
|
Reference in New Issue
Block a user