diff src/window.c @ 27976:d265246e6628 v8.2.4513

patch 8.2.4513: window-local directory is not applied if 'acd' fails Commit: https://github.com/vim/vim/commit/b29ae159777028bb3266835b55716749ab0515be Author: zeertzjq <zeertzjq@outlook.com> Date: Sat Mar 5 17:00:31 2022 +0000 patch 8.2.4513: window-local directory is not applied if 'acd' fails Problem: Window-local directory is not applied if 'acd' fails. Solution: Don't call do_autochdir(). (closes https://github.com/vim/vim/issues/9891)
author Bram Moolenaar <Bram@vim.org>
date Sat, 05 Mar 2022 18:15:02 +0100
parents d1af65b322d0
children a52a5e3363c4
line wrap: on
line diff
--- a/src/window.c
+++ b/src/window.c
@@ -4772,11 +4772,6 @@ win_enter(win_T *wp, int undo_sync)
     static void
 fix_current_dir(void)
 {
-#ifdef FEAT_AUTOCHDIR
-    if (p_acd)
-	do_autochdir();
-    else
-#endif
     if (curwin->w_localdir != NULL || curtab->tp_localdir != NULL)
     {
 	char_u	*dirname;