options: properly reset directories on 'autochdir' (#9894)

Fixes https://github.com/neovim/neovim/issues/9892
This commit is contained in:
Marco Hinz
2019-04-13 12:50:36 +02:00
committed by GitHub
parent d08692a824
commit 5f996e36d1
4 changed files with 17 additions and 4 deletions

View File

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