diff options
Diffstat (limited to 'src/vim9compile.c')
-rw-r--r-- | src/vim9compile.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vim9compile.c b/src/vim9compile.c index 29595cca4..983108106 100644 --- a/src/vim9compile.c +++ b/src/vim9compile.c @@ -4075,7 +4075,7 @@ compile_endtry(char_u *arg, cctx_T *cctx) emsg(_(e_no_endtry)); else if (scope->se_type == WHILE_SCOPE) emsg(_(e_endwhile)); - if (scope->se_type == FOR_SCOPE) + else if (scope->se_type == FOR_SCOPE) emsg(_(e_endfor)); else emsg(_(e_endif)); |