]> granicus.if.org Git - vim/commitdiff
patch 8.2.3505: Vim9: build failure without the +eval feature v8.2.3505
authorBram Moolenaar <Bram@vim.org>
Wed, 13 Oct 2021 14:37:15 +0000 (15:37 +0100)
committerBram Moolenaar <Bram@vim.org>
Wed, 13 Oct 2021 14:37:15 +0000 (15:37 +0100)
Problem:    Vim9: build failure without the +eval feature.
Solution:   Add #ifdef.

src/ex_cmds.c
src/version.c

index 78a87e76ac4c425fd7c2dae53afe97afd898bcaf..ff915173f77e45ed1aeb5a91d19b0a84ba679926 100644 (file)
@@ -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:
index 978e012fcd7bc1702498e299fbbe95753974656a..7fa96b0404e6c48e608332cfe0ecfae0451610ab 100644 (file)
@@ -757,6 +757,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    3505,
 /**/
     3504,
 /**/