summaryrefslogtreecommitdiffstats
path: root/src/evalwindow.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2021-11-14 11:41:31 +0000
committerBram Moolenaar <Bram@vim.org>2021-11-14 11:41:31 +0000
commit7f13b24ab6aca808262e68680d8fe5f082670ebd (patch)
treea6fc626ad6115ec983c0d682489ccc1397741f87 /src/evalwindow.c
parent6a950a6007f27d9d0ce32ef8dcaf5c9d0f1b5aab (diff)
patch 8.2.3593: directory is wrong after executing "lcd" with win_execute()v8.2.3593
Problem: Directory is wrong after executing "lcd" with win_execute(). Solution: Correct the directory when going back to the original window. (closes #9132)
Diffstat (limited to 'src/evalwindow.c')
-rw-r--r--src/evalwindow.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/evalwindow.c b/src/evalwindow.c
index f043c6f4d7..c90571557d 100644
--- a/src/evalwindow.c
+++ b/src/evalwindow.c
@@ -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