mirror of
https://github.com/vim/vim.git
synced 2025-09-26 04:04:07 -04:00
patch 8.0.1564: too many #ifdefs
Problem: Too many #ifdefs. Solution: Graduate the +autocmd feature. Takes away 450 #ifdefs and increases code size of tiny Vim by only 40 Kbyte.
This commit is contained in:
@@ -1372,7 +1372,6 @@ call_func(
|
||||
else
|
||||
fp = find_func(rfname);
|
||||
|
||||
#ifdef FEAT_AUTOCMD
|
||||
/* Trigger FuncUndefined event, may load the function. */
|
||||
if (fp == NULL
|
||||
&& apply_autocmds(EVENT_FUNCUNDEFINED,
|
||||
@@ -1382,7 +1381,6 @@ call_func(
|
||||
/* executed an autocommand, search for the function again */
|
||||
fp = find_func(rfname);
|
||||
}
|
||||
#endif
|
||||
/* Try loading a package. */
|
||||
if (fp == NULL && script_autoload(rfname, TRUE) && !aborting())
|
||||
{
|
||||
|
Reference in New Issue
Block a user