patch 8.2.4010: error messages are spread out
Problem: Error messages are spread out.
Solution: Move more error messages to errors.h.
diff --git a/src/userfunc.c b/src/userfunc.c
index fb9e97e..b7f9dfc 100644
--- a/src/userfunc.c
+++ b/src/userfunc.c
@@ -109,7 +109,7 @@
for (i = 0; i < newargs->ga_len; ++i)
if (STRCMP(((char_u **)(newargs->ga_data))[i], arg_copy) == 0)
{
- semsg(_("E853: Duplicate argument name: %s"), arg_copy);
+ semsg(_(e_duplicate_argument_name_str), arg_copy);
vim_free(arg_copy);
return arg;
}
@@ -4268,7 +4268,7 @@
// Disallow using the g: dict.
if (fudi.fd_dict != NULL && fudi.fd_dict->dv_scope == VAR_DEF_SCOPE)
{
- emsg(_("E862: Cannot use g: here"));
+ emsg(_(e_cannot_use_g_here));
goto ret_free;
}
}