Move apply_autocmd_dirchanged() to vim_chdir()

This commit is contained in:
Marco Hinz
2017-01-12 19:26:53 +01:00
parent a2f8adad4c
commit a05779aa1c
6 changed files with 85 additions and 67 deletions

View File

@@ -315,7 +315,7 @@ void nvim_set_current_dir(String dir, Error *err)
try_start();
if (vim_chdir((char_u *)string)) {
if (vim_chdir((char_u *)string, kCdScopeGlobal)) {
if (!try_end(err)) {
api_set_error(err, Exception, _("Failed to change directory"));
}