summaryrefslogtreecommitdiffstats
path: root/src/ex_eval.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2021-08-10 19:53:01 +0200
committerBram Moolenaar <Bram@vim.org>2021-08-10 19:53:01 +0200
commit917c46abe559f3d779ad87500e874376111ca1ef (patch)
treedfb91ceb975b8a2282937900b74172f4260637ee /src/ex_eval.c
parentb6f55bb5b4d7d03cdf47d552db20d06e41354d5f (diff)
patch 8.2.3324: Vim9: Cannot use :silent with :endwhilev8.2.3324
Problem: Vim9: Cannot use :silent with :endwhile. Solution: Allow for using the :silent modifier. (closes #8737)
Diffstat (limited to 'src/ex_eval.c')
-rw-r--r--src/ex_eval.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/ex_eval.c b/src/ex_eval.c
index 6bc7c18b84..207defa7f3 100644
--- a/src/ex_eval.c
+++ b/src/ex_eval.c
@@ -1026,7 +1026,7 @@ ex_endif(exarg_T *eap)
{
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 @@ ex_endwhile(exarg_T *eap)
int csf;
int fl;
- if (cmdmod_error())
+ if (cmdmod_error(TRUE))
return;
if (eap->cmdidx == CMD_endwhile)
@@ -1593,7 +1593,7 @@ ex_try(exarg_T *eap)
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 @@ ex_catch(exarg_T *eap)
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 @@ ex_finally(exarg_T *eap)
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 @@ ex_endtry(exarg_T *eap)
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)