From 3a846e6bca25bd3d0addcd9ed3bdd9a6774adbe5 Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Sat, 1 Jan 2022 16:21:00 +0000 Subject: patch 8.2.3972: error messages are spread out Problem: Error messages are spread out. Solution: Move the last errors from globals.h to errors.h. --- src/vim9cmds.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/vim9cmds.c') diff --git a/src/vim9cmds.c b/src/vim9cmds.c index 250c265ff..5a86a940c 100644 --- a/src/vim9cmds.c +++ b/src/vim9cmds.c @@ -796,7 +796,7 @@ compile_for(char_u *arg_start, cctx_T *cctx) if (*p == ':' && wp != p) semsg(_(e_no_white_space_allowed_before_colon_str), p); else - emsg(_(e_missing_in)); + emsg(_(e_missing_in_after_for)); return NULL; } wp = p + 2; @@ -1150,7 +1150,7 @@ compile_continue(char_u *arg, cctx_T *cctx) { if (scope == NULL) { - emsg(_(e_continue)); + emsg(_(e_continue_without_while_or_for)); return NULL; } if (scope->se_type == FOR_SCOPE) @@ -1192,7 +1192,7 @@ compile_break(char_u *arg, cctx_T *cctx) { if (scope == NULL) { - emsg(_(e_break)); + emsg(_(e_break_without_while_or_for)); return NULL; } if (scope->se_type == FOR_SCOPE || scope->se_type == WHILE_SCOPE) -- cgit v1.2.1