From b29ae159777028bb3266835b55716749ab0515be Mon Sep 17 00:00:00 2001 From: zeertzjq Date: Sat, 5 Mar 2022 17:00:31 +0000 Subject: 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 #9891) --- src/window.c | 5 ----- 1 file changed, 5 deletions(-) (limited to 'src/window.c') diff --git a/src/window.c b/src/window.c index 5e6fce802..cf11acf89 100644 --- 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; -- cgit v1.2.1