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.
diff --git a/src/vim9cmds.c b/src/vim9cmds.c
index 250c265..5a86a94 100644
--- a/src/vim9cmds.c
+++ b/src/vim9cmds.c
@@ -796,7 +796,7 @@
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 @@
{
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 @@
{
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)