1
0
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:
Bram Moolenaar
2021-11-14 11:41:31 +00:00
parent 6a950a6007
commit 7f13b24ab6
5 changed files with 58 additions and 30 deletions

View File

@@ -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