Skip to content

Commit 39cb2da

Browse files
committed
patch 8.2.2229: build failure without the +eval feature
Problem: build failure without the +eval feature. Solution: Add #ifdef.
1 parent 4389f9c commit 39cb2da

2 files changed

Lines changed: 6 additions & 0 deletions

File tree

src/ex_docmd.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8633,7 +8633,9 @@ eval_vars(
86338633
switch (spec_idx)
86348634
{
86358635
case SPEC_PERC:
8636+
#ifdef FEAT_EVAL
86368637
if (!in_vim9script() || src[1] != '%')
8638+
#endif
86378639
{
86388640
// '%': current file
86398641
if (curbuf->b_fname == NULL)
@@ -8648,9 +8650,11 @@ eval_vars(
86488650
}
86498651
break;
86508652
}
8653+
#ifdef FEAT_EVAL
86518654
// "%%" alternate file
86528655
off = 1;
86538656
// FALLTHROUGH
8657+
#endif
86548658

86558659
case SPEC_HASH: // '#' or "#99": alternate file
86568660
if (off == 0 ? src[1] == '#' : src[2] == '%')

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -750,6 +750,8 @@ static char *(features[]) =
750750

751751
static int included_patches[] =
752752
{ /* Add new patch number below this line */
753+
/**/
754+
2229,
753755
/**/
754756
2228,
755757
/**/

0 commit comments

Comments
 (0)