0
0
mirror of https://github.com/vim/vim.git synced 2025-09-23 03:43:49 -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:
Bram Moolenaar
2022-01-01 16:21:00 +00:00
parent 0699b040e6
commit 3a846e6bca
15 changed files with 61 additions and 49 deletions

View File

@@ -1632,7 +1632,7 @@ eval_for_line(
if (in_vim9script() && *expr == ':' && expr != var_list_end)
semsg(_(e_no_white_space_allowed_before_colon_str), expr);
else
emsg(_(e_missing_in));
emsg(_(e_missing_in_after_for));
return fi;
}
@@ -3888,7 +3888,7 @@ eval_lambda(
if (verbose)
{
if (*skipwhite(*arg) == '(')
emsg(_(e_nowhitespace));
emsg(_(e_no_white_space_allowed_before_parenthesis));
else
semsg(_(e_missing_parenthesis_str), "lambda");
}
@@ -3951,7 +3951,7 @@ eval_method(
else if (VIM_ISWHITE((*arg)[-1]))
{
if (verbose)
emsg(_(e_nowhitespace));
emsg(_(e_no_white_space_allowed_before_parenthesis));
ret = FAIL;
}
else
@@ -5948,7 +5948,7 @@ handle_subscript(
{
if (VIM_ISWHITE(**arg))
{
emsg(_(e_nowhitespace));
emsg(_(e_no_white_space_allowed_before_parenthesis));
ret = FAIL;
}
else if ((**arg == '{' && !in_vim9script()) || **arg == '(')