# HG changeset patch # User Bram Moolenaar # Date 1672667103 -3600 # Node ID f7fbe6aa92cddcc91bca0c8fbfcf2f3703097b02 # Parent 6e72a72bb8a41ea98c5b88db4d194530da481764 patch 9.0.1131: build failure without the +eval feature Commit: https://github.com/vim/vim/commit/a2942c74683be3f67c6044c2886dc6c237358b3d Author: Bram Moolenaar Date: Mon Jan 2 13:41:49 2023 +0000 patch 9.0.1131: build failure without the +eval feature Problem: Build failure without the +eval feature. Solution: Move code inside #ifdef. diff --git a/src/scriptfile.c b/src/scriptfile.c --- a/src/scriptfile.c +++ b/src/scriptfile.c @@ -1538,9 +1538,10 @@ do_source_ext( current_sctx.sc_version = SCRIPT_VERSION_VIM9; else current_sctx.sc_version = 1; // default script version + +#ifdef FEAT_EVAL current_sctx.sc_lnum = 0; -#ifdef FEAT_EVAL # 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); diff --git a/src/version.c b/src/version.c --- a/src/version.c +++ b/src/version.c @@ -696,6 +696,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 1131, +/**/ 1130, /**/ 1129,