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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user