1
0
forked from aniani/vim

patch 8.2.1444: error messages are spread out and names can be confusing

Problem:    Error messages are spread out and names can be confusing.
Solution:   Start moving error messages to a separate file and use clear
            names.
This commit is contained in:
Bram Moolenaar
2020-08-13 22:47:35 +02:00
parent cdd70f09a5
commit bc4c505166
18 changed files with 345 additions and 310 deletions

View File

@@ -513,7 +513,7 @@ vim9_declare_scriptvar(exarg_T *eap, char_u *arg)
if (eap->cmdidx == CMD_const)
{
emsg(_(e_const_req_value));
emsg(_(e_const_requires_a_value));
return arg + STRLEN(arg);
}
@@ -530,12 +530,12 @@ vim9_declare_scriptvar(exarg_T *eap, char_u *arg)
if (*p != ':')
{
emsg(_(e_type_req));
emsg(_(e_type_or_initialization_required));
return arg + STRLEN(arg);
}
if (!VIM_ISWHITE(p[1]))
{
semsg(_(e_white_after), ":");
semsg(_(e_white_space_required_after), ":");
return arg + STRLEN(arg);
}
name = vim_strnsave(arg, p - arg);