forked from aniani/vim
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:
@@ -439,18 +439,11 @@
|
||||
# define FEAT_MODIFY_FNAME
|
||||
#endif
|
||||
|
||||
/*
|
||||
* +autocmd ":autocmd" command
|
||||
*/
|
||||
#ifdef FEAT_NORMAL
|
||||
# define FEAT_AUTOCMD
|
||||
#endif
|
||||
|
||||
/*
|
||||
* +diff Displaying diffs in a nice way.
|
||||
* Requires +windows and +autocmd.
|
||||
*/
|
||||
#if defined(FEAT_NORMAL) && defined(FEAT_AUTOCMD)
|
||||
#if defined(FEAT_NORMAL)
|
||||
# define FEAT_DIFF
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user