mirror of
https://github.com/neovim/neovim.git
synced 2025-09-24 20:18:32 +00:00
vim-patch:8.2.3617: ":verbose pwd" does not mention 'autochdir' was applied
Problem: ":verbose pwd" does not mention 'autochdir' was applied.
Solution: Remember the last chdir was done by 'autochdir'. (issue vim/vim#9142)
0526815c15
This commit is contained in:
@@ -4592,6 +4592,7 @@ void fix_current_dir(void)
|
||||
do_autocmd_dirchanged(new_dir, curwin->w_localdir
|
||||
? kCdScopeWindow : kCdScopeTabpage, kCdCauseWindow);
|
||||
}
|
||||
last_chdir_reason = NULL;
|
||||
shorten_fnames(true);
|
||||
}
|
||||
} else if (globaldir != NULL) {
|
||||
@@ -4603,6 +4604,7 @@ void fix_current_dir(void)
|
||||
}
|
||||
}
|
||||
XFREE_CLEAR(globaldir);
|
||||
last_chdir_reason = NULL;
|
||||
shorten_fnames(true);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user