0
0
mirror of https://github.com/vim/vim.git synced 2025-09-23 03:43:49 -04:00

patch 8.2.3961: error messages are spread out

Problem:    Error messages are spread out.
Solution:   Move more errors to errors.h.
This commit is contained in:
Bram Moolenaar
2021-12-31 22:49:24 +00:00
parent f1474d801b
commit 436b5adc97
62 changed files with 427 additions and 403 deletions

View File

@@ -254,7 +254,7 @@ get_function_args(
if (mustend && *p != endchar)
{
if (!skip)
semsg(_(e_invarg2), *argp);
semsg(_(e_invalid_argument_str), *argp);
goto err_ret;
}
if (*p == endchar)
@@ -3692,7 +3692,7 @@ trans_function_name(
if (!aborting())
{
if (end != NULL)
semsg(_(e_invarg2), start);
semsg(_(e_invalid_argument_str), start);
}
else
*pp = find_name_end(start, NULL, NULL, FNE_INCL_BR);
@@ -4258,7 +4258,7 @@ define_function(exarg_T *eap, char_u *name_arg, char_u **line_to_free)
: eval_isnamec(name_base[i])); ++i)
;
if (name_base[i] != NUL)
emsg_funcname((char *)e_invarg2, arg);
emsg_funcname((char *)e_invalid_argument_str, arg);
// In Vim9 script a function cannot have the same name as a
// variable.
@@ -4909,7 +4909,7 @@ ex_delfunction(exarg_T *eap)
if (numbered_function(name) && fudi.fd_dict == NULL)
{
if (!eap->skip)
semsg(_(e_invarg2), eap->arg);
semsg(_(e_invalid_argument_str), eap->arg);
vim_free(name);
return;
}