Skip to content

Commit 9f7820f

Browse files
committed
patch 7.4.1481
Problem: Can't build with small features. Solution: Add #ifdef.
1 parent 9171587 commit 9f7820f

2 files changed

Lines changed: 8 additions & 0 deletions

File tree

src/ex_cmds2.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3057,6 +3057,7 @@ do_in_runtimepath(
30573057
return do_in_path(p_rtp, name, all ? DIP_ALL : 0, callback, cookie);
30583058
}
30593059

3060+
#ifdef FEAT_AUTOCMD
30603061
/*
30613062
* Source filetype detection scripts, if filetype.vim was already done.
30623063
*/
@@ -3075,6 +3076,7 @@ may_do_filetypes(char_u *pat)
30753076
}
30763077
vim_free(cmd);
30773078
}
3079+
#endif
30783080

30793081
static void
30803082
add_pack_plugin(char_u *fname, void *cookie)
@@ -3160,7 +3162,9 @@ source_packages()
31603162
{
31613163
do_in_path(p_pp, (char_u *)"pack/*/ever/*/plugin/*.vim",
31623164
DIP_ALL, add_pack_plugin, p_pp);
3165+
#ifdef FEAT_AUTOCMD
31633166
may_do_filetypes((char_u *)"pack/*/ever/*/ftdetect/*.vim");
3167+
#endif
31643168
}
31653169

31663170
/*
@@ -3181,8 +3185,10 @@ ex_loadplugin(exarg_T *eap)
31813185
vim_snprintf(pat, len, plugpat, eap->arg);
31823186
do_in_path(p_pp, (char_u *)pat, DIP_ALL, add_pack_plugin, p_pp);
31833187

3188+
#ifdef FEAT_AUTOCMD
31843189
vim_snprintf(pat, len, ftpat, eap->arg);
31853190
may_do_filetypes((char_u *)pat);
3191+
#endif
31863192

31873193
vim_free(pat);
31883194
}

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -743,6 +743,8 @@ static char *(features[]) =
743743

744744
static int included_patches[] =
745745
{ /* Add new patch number below this line */
746+
/**/
747+
1481,
746748
/**/
747749
1480,
748750
/**/

0 commit comments

Comments
 (0)