Mercurial > vim
changeset 8378:52777ec8a394 v7.4.1481
commit https://github.com/vim/vim/commit/9f7820f83bc994bbbecdca9483b355953f07179b
Author: Bram Moolenaar <Bram@vim.org>
Date: Thu Mar 3 17:22:49 2016 +0100
patch 7.4.1481
Problem: Can't build with small features.
Solution: Add #ifdef.
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Thu, 03 Mar 2016 17:30:13 +0100 |
parents | c938f8e269c5 |
children | c63196126179 |
files | src/ex_cmds2.c src/version.c |
diffstat | 2 files changed, 8 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/ex_cmds2.c +++ b/src/ex_cmds2.c @@ -3057,6 +3057,7 @@ do_in_runtimepath( return do_in_path(p_rtp, name, all ? DIP_ALL : 0, callback, cookie); } +#ifdef FEAT_AUTOCMD /* * Source filetype detection scripts, if filetype.vim was already done. */ @@ -3075,6 +3076,7 @@ may_do_filetypes(char_u *pat) } vim_free(cmd); } +#endif static void add_pack_plugin(char_u *fname, void *cookie) @@ -3160,7 +3162,9 @@ source_packages() { do_in_path(p_pp, (char_u *)"pack/*/ever/*/plugin/*.vim", DIP_ALL, add_pack_plugin, p_pp); +#ifdef FEAT_AUTOCMD may_do_filetypes((char_u *)"pack/*/ever/*/ftdetect/*.vim"); +#endif } /* @@ -3181,8 +3185,10 @@ ex_loadplugin(exarg_T *eap) vim_snprintf(pat, len, plugpat, eap->arg); do_in_path(p_pp, (char_u *)pat, DIP_ALL, add_pack_plugin, p_pp); +#ifdef FEAT_AUTOCMD vim_snprintf(pat, len, ftpat, eap->arg); may_do_filetypes((char_u *)pat); +#endif vim_free(pat); }