mirror of
https://github.com/neovim/neovim.git
synced 2025-09-23 19:48:32 +00:00
Move apply_autocmd_dirchanged() to vim_chdir()
This commit is contained in:
@@ -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"));
|
||||
}
|
||||
|
Reference in New Issue
Block a user