File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -3389,13 +3389,20 @@ same_directory(char_u *f1, char_u *f2)
33893389 * Return OK or FAIL.
33903390 */
33913391 int
3392- vim_chdirfile (char_u * fname )
3392+ vim_chdirfile (char_u * fname , char * trigger_autocmd UNUSED )
33933393{
33943394 char_u dir [MAXPATHL ];
3395+ int res ;
33953396
33963397 vim_strncpy (dir , fname , MAXPATHL - 1 );
33973398 * gettail_sep (dir ) = NUL ;
3398- return mch_chdir ((char * )dir ) == 0 ? OK : FAIL ;
3399+ res = mch_chdir ((char * )dir ) == 0 ? OK : FAIL ;
3400+ #ifdef FEAT_AUTOCMD
3401+ if (res == OK && trigger_autocmd != NULL )
3402+ apply_autocmds (EVENT_DIRCHANGED , (char_u * )trigger_autocmd ,
3403+ dir , FALSE, curbuf );
3404+ #endif
3405+ return res ;
33993406}
34003407#endif
34013408
Original file line number Diff line number Diff line change @@ -771,6 +771,8 @@ static char *(features[]) =
771771
772772static int included_patches [] =
773773{ /* Add new patch number below this line */
774+ /**/
775+ 1460 ,
774776/**/
775777 1459 ,
776778/**/
You can’t perform that action at this time.
0 commit comments