summaryrefslogtreecommitdiffstats
path: root/src/menu.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2020-12-28 18:26:00 +0100
committerBram Moolenaar <Bram@vim.org>2020-12-28 18:26:00 +0100
commit9b8d62267f583d5dc042920adb1de046959ad11d (patch)
tree8a2c9ab0af5fee27b1acfb6b707045d2b4bf898f /src/menu.c
parented1e4c9a70aaa7de56bac23e75a846e874a32a56 (diff)
patch 8.2.2238: Vim9: cannot load a Vim9 script without the +eval featurev8.2.2238
Problem: Vim9: cannot load a Vim9 script without the +eval feature. Solution: Support Vim9 script syntax without the +eval feature.
Diffstat (limited to 'src/menu.c')
-rw-r--r--src/menu.c12
1 files changed, 2 insertions, 10 deletions
diff --git a/src/menu.c b/src/menu.c
index fd811de065..4f5e26b3d6 100644
--- a/src/menu.c
+++ b/src/menu.c
@@ -2310,11 +2310,7 @@ execute_menu(exarg_T *eap, vimmenu_T *menu, int mode_idx)
if (idx < 0)
{
// Use the Insert mode entry when returning to Insert mode.
- if (restart_edit
-#ifdef FEAT_EVAL
- && !current_sctx.sc_sid
-#endif
- )
+ if (restart_edit && !current_sctx.sc_sid)
{
idx = MENU_INDEX_INSERT;
}
@@ -2384,11 +2380,7 @@ execute_menu(exarg_T *eap, vimmenu_T *menu, int mode_idx)
// When executing a script or function execute the commands right now.
// Also for the window toolbar.
// Otherwise put them in the typeahead buffer.
- if (eap == NULL
-#ifdef FEAT_EVAL
- || current_sctx.sc_sid != 0
-#endif
- )
+ if (eap == NULL || current_sctx.sc_sid != 0)
{
save_state_T save_state;