]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 9.0.1131: build failure without the +eval feature v9.0.1131
authorBram Moolenaar <Bram@vim.org>
Mon, 2 Jan 2023 13:41:49 +0000 (13:41 +0000)
committerBram Moolenaar <Bram@vim.org>
Mon, 2 Jan 2023 13:41:49 +0000 (13:41 +0000)
Problem:    Build failure without the +eval feature.
Solution:   Move code inside #ifdef.

src/scriptfile.c
src/version.c

index 4b1fa6b14818f6ceda0176087086bf0155b4b873..b5a381cff3f86a7bbbb63d5adc4f8d1d572a2983 100644 (file)
@@ -1538,9 +1538,10 @@ do_source_ext(
        current_sctx.sc_version = SCRIPT_VERSION_VIM9;
     else
        current_sctx.sc_version = 1;  // default script version
-    current_sctx.sc_lnum = 0;
 
 #ifdef FEAT_EVAL
+    current_sctx.sc_lnum = 0;
+
 # ifdef FEAT_PROFILE
     if (do_profiling == PROF_YES)
        prof_child_enter(&wait_start);          // entering a child now
@@ -1767,9 +1768,10 @@ almosttheend:
     if (do_profiling == PROF_YES)
        prof_child_exit(&wait_start);           // leaving a child now
 # endif
+
+    KeyTyped = save_KeyTyped;
 #endif
     current_sctx = save_current_sctx;
-    KeyTyped = save_KeyTyped;
 
     if (cookie.fp != NULL)
        fclose(cookie.fp);
index 212d08dbf15d932311046e6c09635f2e6e28aa32..babedcc63e65eadf483a0397505921cdeac4ba4d 100644 (file)
@@ -695,6 +695,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1131,
 /**/
     1130,
 /**/