# HG changeset patch # User Christian Brabandt # Date 1517678105 -3600 # Node ID 7ab8c59839837c26851eaf89e09d6fa61b3f6e07 # Parent 4ed32d280b7430ceb33c8d47ee5c6b5794b9f075 patch 8.0.1460: missing file in patch commit https://github.com/vim/vim/commit/b5cb65ba2bcc6bbc6d2798a2dea18b95f0b38f5e Author: Bram Moolenaar Date: Sat Feb 3 18:01:37 2018 +0100 patch 8.0.1460: missing file in patch Problem: Missing file in patch. Solution: Add changes to missing file. diff --git a/src/misc2.c b/src/misc2.c --- a/src/misc2.c +++ b/src/misc2.c @@ -3389,13 +3389,20 @@ same_directory(char_u *f1, char_u *f2) * Return OK or FAIL. */ int -vim_chdirfile(char_u *fname) +vim_chdirfile(char_u *fname, char *trigger_autocmd UNUSED) { char_u dir[MAXPATHL]; + int res; vim_strncpy(dir, fname, MAXPATHL - 1); *gettail_sep(dir) = NUL; - return mch_chdir((char *)dir) == 0 ? OK : FAIL; + res = mch_chdir((char *)dir) == 0 ? OK : FAIL; +#ifdef FEAT_AUTOCMD + if (res == OK && trigger_autocmd != NULL) + apply_autocmds(EVENT_DIRCHANGED, (char_u *)trigger_autocmd, + dir, FALSE, curbuf); +#endif + return res; } #endif diff --git a/src/version.c b/src/version.c --- a/src/version.c +++ b/src/version.c @@ -772,6 +772,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 1460, +/**/ 1459, /**/ 1458,