diff options
author | Bram Moolenaar <Bram@vim.org> | 2022-01-01 16:21:00 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2022-01-01 16:21:00 +0000 |
commit | 3a846e6bca25bd3d0addcd9ed3bdd9a6774adbe5 (patch) | |
tree | e345b4f42d545e735e2df2292589211ba52ff678 /src/vim9cmds.c | |
parent | 0699b040e6794d27ffdca241a4358d7c31876385 (diff) | |
download | vim-git-3a846e6bca25bd3d0addcd9ed3bdd9a6774adbe5.tar.gz |
patch 8.2.3972: error messages are spread outv8.2.3972
Problem: Error messages are spread out.
Solution: Move the last errors from globals.h to errors.h.
Diffstat (limited to 'src/vim9cmds.c')
-rw-r--r-- | src/vim9cmds.c | 6 |
1 files changed, 3 insertions, 3 deletions
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) |