diff src/scriptfile.c @ 30265:8507a5b2c031 v9.0.0468

patch 9.0.0468: exectution stack underflow without the +eval feature Commit: https://github.com/vim/vim/commit/aeef1f7f6d8f6d4e84ffc9a24874f10403e4ddcd Author: Bram Moolenaar <Bram@vim.org> Date: Thu Sep 15 12:20:18 2022 +0100 patch 9.0.0468: exectution stack underflow without the +eval feature Problem: Exectution stack underflow without the +eval feature. (Dominique Pell?) Solution: Add to execution stack without FEAT_EVAL. (closes #11135)
author Bram Moolenaar <Bram@vim.org>
date Thu, 15 Sep 2022 13:30:05 +0200
parents cd573d7bc30d
children 37aa9fd2ed72
line wrap: on
line diff
--- a/src/scriptfile.c
+++ b/src/scriptfile.c
@@ -1639,6 +1639,9 @@ do_source_ext(
 	}
     }
 # endif
+#else
+    // Keep the sourcing name/lnum, for recursive calls.
+    estack_push(ETYPE_SCRIPT, fname_exp, 0);
 #endif
 
     cookie.conv.vc_type = CONV_NONE;		// no conversion