1
0
forked from aniani/vim

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)
This commit is contained in:
zeertzjq
2022-03-05 17:00:31 +00:00
committed by Bram Moolenaar
parent df1bbea436
commit b29ae15977
3 changed files with 11 additions and 9 deletions

View File

@@ -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;