mirror of
https://github.com/vim/vim.git
synced 2025-07-26 11:04:33 -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:
parent
b7407d3fc9
commit
b5cb65ba2b
11
src/misc2.c
11
src/misc2.c
@ -3389,13 +3389,20 @@ same_directory(char_u *f1, char_u *f2)
|
|||||||
* Return OK or FAIL.
|
* Return OK or FAIL.
|
||||||
*/
|
*/
|
||||||
int
|
int
|
||||||
vim_chdirfile(char_u *fname)
|
vim_chdirfile(char_u *fname, char *trigger_autocmd UNUSED)
|
||||||
{
|
{
|
||||||
char_u dir[MAXPATHL];
|
char_u dir[MAXPATHL];
|
||||||
|
int res;
|
||||||
|
|
||||||
vim_strncpy(dir, fname, MAXPATHL - 1);
|
vim_strncpy(dir, fname, MAXPATHL - 1);
|
||||||
*gettail_sep(dir) = NUL;
|
*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
|
#endif
|
||||||
|
|
||||||
|
@ -771,6 +771,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
1460,
|
||||||
/**/
|
/**/
|
||||||
1459,
|
1459,
|
||||||
/**/
|
/**/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user