mirror of
https://github.com/vim/vim.git
synced 2025-09-24 03:44:06 -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:
@@ -83,7 +83,7 @@ ex_vim9script(exarg_T *eap UNUSED)
|
||||
}
|
||||
if (!IS_WHITE_OR_NUL(*eap->arg) && STRCMP(eap->arg, "noclear") != 0)
|
||||
{
|
||||
semsg(_(e_invarg2), eap->arg);
|
||||
semsg(_(e_invalid_argument_str), eap->arg);
|
||||
return;
|
||||
}
|
||||
if (si->sn_state == SN_STATE_RELOAD && IS_WHITE_OR_NUL(*eap->arg))
|
||||
@@ -771,7 +771,7 @@ vim9_declare_scriptvar(exarg_T *eap, char_u *arg)
|
||||
// Check for valid starting character.
|
||||
if (!eval_isnamec1(*arg))
|
||||
{
|
||||
semsg(_(e_invarg2), arg);
|
||||
semsg(_(e_invalid_argument_str), arg);
|
||||
return arg + STRLEN(arg);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user