-
-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: #200 Prevent cd loading a session while already restoring sesssion
If `cwd_change_handling = true` and `sessionoptions` contains `curdir`, the session will contain a cd command to change to the directory where the session was saved. That would trigger DirChangedPre/DirChanged and DirChanged would try to load the session again. Obviously, we don't want to do that. We have previously prevented it for AutoRestoreSession and loading a session via search but it's better to do it in RestoreSession to handle all of the cases.
- Loading branch information
Showing
2 changed files
with
25 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters