Skip to content

Commit a2942c7

Browse files
committed
patch 9.0.1131: build failure without the +eval feature
Problem: Build failure without the +eval feature. Solution: Move code inside #ifdef.
1 parent 39c82ea commit a2942c7

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

src/scriptfile.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1538,9 +1538,10 @@ do_source_ext(
15381538
current_sctx.sc_version = SCRIPT_VERSION_VIM9;
15391539
else
15401540
current_sctx.sc_version = 1; // default script version
1541-
current_sctx.sc_lnum = 0;
15421541

15431542
#ifdef FEAT_EVAL
1543+
current_sctx.sc_lnum = 0;
1544+
15441545
# ifdef FEAT_PROFILE
15451546
if (do_profiling == PROF_YES)
15461547
prof_child_enter(&wait_start); // entering a child now
@@ -1767,9 +1768,10 @@ do_source_ext(
17671768
if (do_profiling == PROF_YES)
17681769
prof_child_exit(&wait_start); // leaving a child now
17691770
# endif
1771+
1772+
KeyTyped = save_KeyTyped;
17701773
#endif
17711774
current_sctx = save_current_sctx;
1772-
KeyTyped = save_KeyTyped;
17731775

17741776
if (cookie.fp != NULL)
17751777
fclose(cookie.fp);

src/version.c

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

696696
static int included_patches[] =
697697
{ /* Add new patch number below this line */
698+
/**/
699+
1131,
698700
/**/
699701
1130,
700702
/**/

0 commit comments

Comments
 (0)