mirror of
https://github.com/vim/vim.git
synced 2025-09-24 03:44:06 -04:00
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.
This commit is contained in:
@@ -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)
|
||||
|
Reference in New Issue
Block a user