forked from aniani/vim
patch 8.2.3505: Vim9: build failure without the +eval feature
Problem: Vim9: build failure without the +eval feature. Solution: Add #ifdef.
This commit is contained in:
@@ -3724,9 +3724,11 @@ ex_substitute(exarg_T *eap)
|
|||||||
// don't accept alphanumeric for separator
|
// don't accept alphanumeric for separator
|
||||||
if (check_regexp_delim(*cmd) == FAIL)
|
if (check_regexp_delim(*cmd) == FAIL)
|
||||||
return;
|
return;
|
||||||
|
#ifdef FEAT_EVAL
|
||||||
if (in_vim9script() && check_global_and_subst(eap->cmd, eap->arg)
|
if (in_vim9script() && check_global_and_subst(eap->cmd, eap->arg)
|
||||||
== FAIL)
|
== FAIL)
|
||||||
return;
|
return;
|
||||||
|
#endif
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* undocumented vi feature:
|
* undocumented vi feature:
|
||||||
@@ -4902,8 +4904,10 @@ ex_global(exarg_T *eap)
|
|||||||
cmd = eap->arg;
|
cmd = eap->arg;
|
||||||
which_pat = RE_LAST; // default: use last used regexp
|
which_pat = RE_LAST; // default: use last used regexp
|
||||||
|
|
||||||
|
#ifdef FEAT_EVAL
|
||||||
if (in_vim9script() && check_global_and_subst(eap->cmd, eap->arg) == FAIL)
|
if (in_vim9script() && check_global_and_subst(eap->cmd, eap->arg) == FAIL)
|
||||||
return;
|
return;
|
||||||
|
#endif
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* undocumented vi feature:
|
* undocumented vi feature:
|
||||||
|
@@ -757,6 +757,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
3505,
|
||||||
/**/
|
/**/
|
||||||
3504,
|
3504,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user