diff --git a/src/internal/model.go b/src/internal/model.go index e3b3cf0d..24587d65 100644 --- a/src/internal/model.go +++ b/src/internal/model.go @@ -431,9 +431,6 @@ func (m model) quitSuperfile() { variable.LastDir = currentDir if Config.CdOnQuit { - if currentDir == variable.HomeDir { - return - } // escape single quote currentDir = strings.ReplaceAll(currentDir, "'", "'\\''") os.WriteFile(variable.SuperFileStateDir+"/lastdir", []byte("cd '"+currentDir+"'"), 0755)