revert: partially revert #9894

Vim has a solution to #9892 with fewer side-effects in patch 8.2.3618
This commit is contained in:
zeertzjq 2021-11-19 20:07:04 +08:00
parent 4785cad8ee
commit 54e9cce612

View File

@ -1587,7 +1587,6 @@ void do_autochdir(void)
if (starting == 0
&& curbuf->b_ffname != NULL
&& vim_chdirfile(curbuf->b_ffname, kCdCauseAuto) == OK) {
post_chdir(kCdScopeGlobal, false);
last_chdir_reason = "autochdir";
shorten_fnames(true);
}