summaryrefslogtreecommitdiff
path: root/src/option.h
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2019-01-26 17:28:26 +0100
committerBram Moolenaar <Bram@vim.org>2019-01-26 17:28:26 +0100
commit29ddebef4038d2d2b3bc9d8d3b0109f4046d6fbf (patch)
tree66144403e05268df8594b01d0298db4f570ed60f /src/option.h
parent3e460fd8b72db905fbf9f01b00371384ffc415b8 (diff)
downloadvim-git-29ddebef4038d2d2b3bc9d8d3b0109f4046d6fbf.tar.gz
patch 8.1.0826: too many #ifdefsv8.1.0826
Problem: Too many #ifdefs. Solution: Graduate FEAT_VIRTUALEDIT. Adds about 10Kbyte to the code.
Diffstat (limited to 'src/option.h')
-rw-r--r--src/option.h12
1 files changed, 5 insertions, 7 deletions
diff --git a/src/option.h b/src/option.h
index d648df7dc..c282da325 100644
--- a/src/option.h
+++ b/src/option.h
@@ -908,17 +908,15 @@ EXTERN char_u *p_vop; /* 'viewoptions' */
EXTERN unsigned vop_flags; /* uses SSOP_ flags */
#endif
EXTERN int p_vb; /* 'visualbell' */
-#ifdef FEAT_VIRTUALEDIT
EXTERN char_u *p_ve; /* 'virtualedit' */
EXTERN unsigned ve_flags;
-# ifdef IN_OPTION_C
+#ifdef IN_OPTION_C
static char *(p_ve_values[]) = {"block", "insert", "all", "onemore", NULL};
-# endif
-# define VE_BLOCK 5 /* includes "all" */
-# define VE_INSERT 6 /* includes "all" */
-# define VE_ALL 4
-# define VE_ONEMORE 8
#endif
+#define VE_BLOCK 5 /* includes "all" */
+#define VE_INSERT 6 /* includes "all" */
+#define VE_ALL 4
+#define VE_ONEMORE 8
EXTERN long p_verbose; /* 'verbose' */
#ifdef IN_OPTION_C
char_u *p_vfile = (char_u *)""; /* used before options are initialized */