eval: Do not break when VimVarIndex and vimvars order mismatches

Also makes sure that compiler will error out when new name is longer then 
vv_filler.
This commit is contained in:
ZyX
2016-03-01 02:25:15 +03:00
parent 942e0b338c
commit 6a35f2ac8b
3 changed files with 161 additions and 107 deletions

View File

@@ -52,8 +52,6 @@ EXTERN ufunc_T dumuf;
#define HI2UF(hi) HIKEY2UF((hi)->hi_key)
/// Defines for Vim variables
///
/// Order must match order in vimvars[] table in eval.c.
typedef enum {
VV_COUNT,
VV_COUNT1,