# HG changeset patch # User Bram Moolenaar # Date 1634136303 -7200 # Node ID dbf6a2066091b681ca3e885206b0dbf3743963d1 # Parent 831177027281dafd1ea0ff42e4bcab211ab45981 patch 8.2.3505: Vim9: build failure without the +eval feature Commit: https://github.com/vim/vim/commit/3be69bf539f3026369d20f1667e53d390d386a9f Author: Bram Moolenaar Date: Wed Oct 13 15:37:15 2021 +0100 patch 8.2.3505: Vim9: build failure without the +eval feature Problem: Vim9: build failure without the +eval feature. Solution: Add #ifdef. diff --git a/src/ex_cmds.c b/src/ex_cmds.c --- 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: diff --git a/src/version.c b/src/version.c --- a/src/version.c +++ b/src/version.c @@ -758,6 +758,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 3505, +/**/ 3504, /**/ 3503,