1
0
forked from aniani/vim

patch 8.2.2229: build failure without the +eval feature

Problem:    build failure without the +eval feature.
Solution:   Add #ifdef.
This commit is contained in:
Bram Moolenaar
2020-12-27 17:35:18 +01:00
parent 4389f9cd00
commit 39cb2dab18
2 changed files with 6 additions and 0 deletions

View File

@@ -8633,7 +8633,9 @@ eval_vars(
switch (spec_idx) switch (spec_idx)
{ {
case SPEC_PERC: case SPEC_PERC:
#ifdef FEAT_EVAL
if (!in_vim9script() || src[1] != '%') if (!in_vim9script() || src[1] != '%')
#endif
{ {
// '%': current file // '%': current file
if (curbuf->b_fname == NULL) if (curbuf->b_fname == NULL)
@@ -8648,9 +8650,11 @@ eval_vars(
} }
break; break;
} }
#ifdef FEAT_EVAL
// "%%" alternate file // "%%" alternate file
off = 1; off = 1;
// FALLTHROUGH // FALLTHROUGH
#endif
case SPEC_HASH: // '#' or "#99": alternate file case SPEC_HASH: // '#' or "#99": alternate file
if (off == 0 ? src[1] == '#' : src[2] == '%') if (off == 0 ? src[1] == '#' : src[2] == '%')

View File

@@ -750,6 +750,8 @@ static char *(features[]) =
static int included_patches[] = static int included_patches[] =
{ /* Add new patch number below this line */ { /* Add new patch number below this line */
/**/
2229,
/**/ /**/
2228, 2228,
/**/ /**/