forked from aniani/vim
patch 8.2.3593: directory is wrong after executing "lcd" with win_execute()
Problem: Directory is wrong after executing "lcd" with win_execute(). Solution: Correct the directory when going back to the original window. (closes #9132)
This commit is contained in:
@@ -1311,5 +1311,9 @@ restore_win_noblock(
|
||||
// to the first valid window.
|
||||
win_goto(firstwin);
|
||||
# endif
|
||||
|
||||
// If called by win_execute() and executing the command changed the
|
||||
// directory, it now has to be restored.
|
||||
fix_current_dir();
|
||||
}
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user