Skip to content

Commit

Permalink
patch 8.1.0202: :version always shows +packages
Browse files Browse the repository at this point in the history
Problem:    :version always shows +packages. (Takuya Fujiwara)
Solution:   Add #ifdef (closes #3198) Also for has().
  • Loading branch information
brammool committed Jul 22, 2018
1 parent 79a494d commit 6183ccb
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/evalfunc.c
Expand Up @@ -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
Expand Down
6 changes: 6 additions & 0 deletions src/version.c
Expand Up @@ -493,7 +493,11 @@ static char *(features[]) =
"-ole",
# endif
#endif
#ifdef FEAT_EVAL
"+packages",
#else
"-packages",
#endif
#ifdef FEAT_PATH_EXTRA
"+path_extra",
#else
Expand Down Expand Up @@ -789,6 +793,8 @@ static char *(features[]) =

static int included_patches[] =
{ /* Add new patch number below this line */
/**/
202,
/**/
201,
/**/
Expand Down

0 comments on commit 6183ccb

Please sign in to comment.