changeset 14375:e5d7dd985b53 v8.1.0202

patch 8.1.0202: :version always shows +packages commit https://github.com/vim/vim/commit/6183ccbd679751ff5b138f23a34ead3d7bbc5c1b Author: Bram Moolenaar <Bram@vim.org> Date: Sun Jul 22 05:08:11 2018 +0200 patch 8.1.0202: :version always shows +packages Problem: :version always shows +packages. (Takuya Fujiwara) Solution: Add #ifdef (closes https://github.com/vim/vim/issues/3198) Also for has().
author Christian Brabandt <cb@256bit.org>
date Sun, 22 Jul 2018 05:15:05 +0200
parents 5898ddfc3ecc
children 04a5346f267d
files src/evalfunc.c src/version.c
diffstat 2 files changed, 8 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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
--- 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
@@ -790,6 +794,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    202,
+/**/
     201,
 /**/
     200,