mirror of
https://github.com/vim/vim.git
synced 2025-10-01 04:54:07 -04:00
patch 8.2.4335: no autocommand event triggered before changing directory
Problem: No autocommand event triggered before changing directory. (Ronnie Magatti) Solution: Add DirChangedPre. (closes #9721)
This commit is contained in:
@@ -1914,6 +1914,9 @@ vim_chdirfile(char_u *fname, char *trigger_autocmd)
|
||||
// nothing to do
|
||||
return OK;
|
||||
|
||||
if (trigger_autocmd != NULL)
|
||||
trigger_DirChangedPre((char_u *)trigger_autocmd, new_dir);
|
||||
|
||||
if (mch_chdir((char *)new_dir) != 0)
|
||||
return FAIL;
|
||||
|
||||
|
Reference in New Issue
Block a user