0
0
mirror of https://github.com/vim/vim.git synced 2025-07-24 10:45:12 -04:00

patch 8.0.1460: missing file in patch

Problem:    Missing file in patch.
Solution:   Add changes to missing file.
This commit is contained in:
Bram Moolenaar 2018-02-03 18:01:37 +01:00
parent b7407d3fc9
commit b5cb65ba2b
2 changed files with 11 additions and 2 deletions

View File

@ -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

View File

@ -771,6 +771,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
1460,
/**/
1459,
/**/