patch 8.2.3324: Vim9: Cannot use :silent with :endwhile
Problem: Vim9: Cannot use :silent with :endwhile.
Solution: Allow for using the :silent modifier. (closes #8737)
diff --git a/src/ex_eval.c b/src/ex_eval.c
index 6bc7c18..207defa 100644
--- a/src/ex_eval.c
+++ b/src/ex_eval.c
@@ -1026,7 +1026,7 @@
{
cstack_T *cstack = eap->cstack;
- if (cmdmod_error())
+ if (cmdmod_error(FALSE))
return;
did_endif = TRUE;
if (cstack->cs_idx < 0
@@ -1355,7 +1355,7 @@
int csf;
int fl;
- if (cmdmod_error())
+ if (cmdmod_error(TRUE))
return;
if (eap->cmdidx == CMD_endwhile)
@@ -1593,7 +1593,7 @@
int skip;
cstack_T *cstack = eap->cstack;
- if (cmdmod_error())
+ if (cmdmod_error(FALSE))
return;
if (cstack->cs_idx == CSTACK_LEN - 1)
@@ -1674,7 +1674,7 @@
cstack_T *cstack = eap->cstack;
char_u *pat;
- if (cmdmod_error())
+ if (cmdmod_error(FALSE))
return;
if (cstack->cs_trylevel <= 0 || cstack->cs_idx < 0)
@@ -1839,7 +1839,7 @@
int pending = CSTP_NONE;
cstack_T *cstack = eap->cstack;
- if (cmdmod_error())
+ if (cmdmod_error(FALSE))
return;
if (cstack->cs_trylevel <= 0 || cstack->cs_idx < 0)
@@ -1971,7 +1971,7 @@
void *rettv = NULL;
cstack_T *cstack = eap->cstack;
- if (cmdmod_error())
+ if (cmdmod_error(FALSE))
return;
if (cstack->cs_trylevel <= 0 || cstack->cs_idx < 0)