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

@@ -690,7 +690,7 @@ void nvim_set_current_dir(String dir, Error *err)
return;
}
post_chdir(kCdScopeGlobal);
post_chdir(kCdScopeGlobal, true);
try_end(err);
}