diff options
author | Bram Moolenaar <Bram@vim.org> | 2021-11-14 11:41:31 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2021-11-14 11:41:31 +0000 |
commit | 7f13b24ab6aca808262e68680d8fe5f082670ebd (patch) | |
tree | a6fc626ad6115ec983c0d682489ccc1397741f87 /src/evalwindow.c | |
parent | 6a950a6007f27d9d0ce32ef8dcaf5c9d0f1b5aab (diff) | |
download | vim-git-7f13b24ab6aca808262e68680d8fe5f082670ebd.tar.gz |
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.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/evalwindow.c b/src/evalwindow.c index f043c6f4d..c90571557 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 |