summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2018-07-22 05:08:11 +0200
committerBram Moolenaar <Bram@vim.org>2018-07-22 05:08:11 +0200
commit6183ccbd679751ff5b138f23a34ead3d7bbc5c1b (patch)
treeffd7bbe00f9160a169fc6f8c168ab9de85d087bf
parent79a494d5e2f97c10e74f92ea529552623c314422 (diff)
downloadvim-git-6183ccbd679751ff5b138f23a34ead3d7bbc5c1b.tar.gz
patch 8.1.0202: :version always shows +packagesv8.1.0202
Problem: :version always shows +packages. (Takuya Fujiwara) Solution: Add #ifdef (closes #3198) Also for has().
-rw-r--r--src/evalfunc.c2
-rw-r--r--src/version.c6
2 files changed, 8 insertions, 0 deletions
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
@@ -790,6 +794,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 202,
+/**/
201,
/**/
200,