summaryrefslogtreecommitdiffstats
path: root/src/evalwindow.c
diff options
context:
space:
mode:
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