summaryrefslogtreecommitdiffstats
path: root/src/ex_cmds.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2021-10-13 15:37:15 +0100
committerBram Moolenaar <Bram@vim.org>2021-10-13 15:37:15 +0100
commit3be69bf539f3026369d20f1667e53d390d386a9f (patch)
tree4f10a4a9dcc333b7ae4d201f1555eff6d34dccfe /src/ex_cmds.c
parent7f32092b9127a71d243bacd31ebb303f2c78a8f1 (diff)
patch 8.2.3505: Vim9: build failure without the +eval featurev8.2.3505
Problem: Vim9: build failure without the +eval feature. Solution: Add #ifdef.
Diffstat (limited to 'src/ex_cmds.c')
-rw-r--r--src/ex_cmds.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/ex_cmds.c b/src/ex_cmds.c
index 78a87e76ac..ff915173f7 100644
--- a/src/ex_cmds.c
+++ b/src/ex_cmds.c
@@ -3724,9 +3724,11 @@ ex_substitute(exarg_T *eap)
// don't accept alphanumeric for separator
if (check_regexp_delim(*cmd) == FAIL)
return;
+#ifdef FEAT_EVAL
if (in_vim9script() && check_global_and_subst(eap->cmd, eap->arg)
== FAIL)
return;
+#endif
/*
* undocumented vi feature:
@@ -4902,8 +4904,10 @@ ex_global(exarg_T *eap)
cmd = eap->arg;
which_pat = RE_LAST; // default: use last used regexp
+#ifdef FEAT_EVAL
if (in_vim9script() && check_global_and_subst(eap->cmd, eap->arg) == FAIL)
return;
+#endif
/*
* undocumented vi feature: