patch 8.2.3986: error messages are spread out
Problem: Error messages are spread out.
Solution: Move more error messages to errors.h.
diff --git a/src/usercmd.c b/src/usercmd.c
index 2c41f6f..72c011b 100644
--- a/src/usercmd.c
+++ b/src/usercmd.c
@@ -689,7 +689,7 @@
if (arg != NULL)
# endif
{
- emsg(_("E468: Completion argument only allowed for custom completion"));
+ emsg(_(e_completion_argument_only_allowed_for_custom_completion));
return FAIL;
}
@@ -697,7 +697,7 @@
if ((*complp == EXPAND_USER_DEFINED || *complp == EXPAND_USER_LIST)
&& arg == NULL)
{
- emsg(_("E467: Custom completion requires a function argument"));
+ emsg(_(e_custom_completion_requires_function_argument));
return FAIL;
}