From: Bram Moolenaar Date: Sun, 22 Jul 2018 03:08:11 +0000 (+0200) Subject: patch 8.1.0202: :version always shows +packages X-Git-Tag: v8.1.0202 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6183ccbd679751ff5b138f23a34ead3d7bbc5c1b;p=vim patch 8.1.0202: :version always shows +packages Problem: :version always shows +packages. (Takuya Fujiwara) Solution: Add #ifdef (closes #3198) Also for has(). --- diff --git a/src/evalfunc.c b/src/evalfunc.c index bb3257119..7d0f33aaa 100644 --- a/src/evalfunc.c +++ b/src/evalfunc.c @@ -6302,7 +6302,9 @@ f_has(typval_T *argvars, typval_T *rettv) #ifdef FEAT_OLE "ole", #endif +#ifdef FEAT_EVAL "packages", +#endif #ifdef FEAT_PATH_EXTRA "path_extra", #endif diff --git a/src/version.c b/src/version.c index 44c620cc4..a0f748309 100644 --- a/src/version.c +++ b/src/version.c @@ -493,7 +493,11 @@ static char *(features[]) = "-ole", # endif #endif +#ifdef FEAT_EVAL "+packages", +#else + "-packages", +#endif #ifdef FEAT_PATH_EXTRA "+path_extra", #else @@ -789,6 +793,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 202, /**/ 201, /**/