Skip to content
Permalink
Browse files

patch 8.0.1460: missing file in patch

Problem:    Missing file in patch.
Solution:   Add changes to missing file.
  • Loading branch information...
brammool committed Feb 3, 2018
1 parent b7407d3 commit b5cb65ba2bcc6bbc6d2798a2dea18b95f0b38f5e
Showing with 11 additions and 2 deletions.
  1. +9 −2 src/misc2.c
  2. +2 −0 src/version.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

@@ -771,6 +771,8 @@ static char *(features[]) =

static int included_patches[] =
{ /* Add new patch number below this line */
/**/
1460,
/**/
1459,
/**/

0 comments on commit b5cb65b

Please sign in to comment.
You can’t perform that action at this time.