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:
@@ -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] == '%')
|
||||||
|
@@ -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,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user