0
0
mirror of https://github.com/vim/vim.git synced 2025-09-25 03:54:15 -04:00

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)
{
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] == '%')

View File

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