From: Bram Moolenaar Date: Sun, 27 Dec 2020 16:35:18 +0000 (+0100) Subject: patch 8.2.2229: build failure without the +eval feature X-Git-Tag: v8.2.2229 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=39cb2dab18e85fc60f116a4543e433616872b690;p=vim patch 8.2.2229: build failure without the +eval feature Problem: build failure without the +eval feature. Solution: Add #ifdef. --- diff --git a/src/ex_docmd.c b/src/ex_docmd.c index 5e90ad16a..bb191b53c 100644 --- a/src/ex_docmd.c +++ b/src/ex_docmd.c @@ -8633,7 +8633,9 @@ eval_vars( switch (spec_idx) { case SPEC_PERC: +#ifdef FEAT_EVAL if (!in_vim9script() || src[1] != '%') +#endif { // '%': current file if (curbuf->b_fname == NULL) @@ -8648,9 +8650,11 @@ eval_vars( } break; } +#ifdef FEAT_EVAL // "%%" alternate file off = 1; // FALLTHROUGH +#endif case SPEC_HASH: // '#' or "#99": alternate file if (off == 0 ? src[1] == '#' : src[2] == '%') diff --git a/src/version.c b/src/version.c index 985e48e6b..adfaf50eb 100644 --- a/src/version.c +++ b/src/version.c @@ -750,6 +750,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 2229, /**/ 2228, /**/