patch 8.2.3972: error messages are spread out
Problem: Error messages are spread out.
Solution: Move the last errors from globals.h to errors.h.
diff --git a/src/search.c b/src/search.c
index 35a4a3a..c3597e6 100644
--- a/src/search.c
+++ b/src/search.c
@@ -4807,7 +4807,8 @@
// validate and get the arguments
if (argvars[0].v_type != VAR_LIST || argvars[0].vval.v_list == NULL)
{
- semsg(_(e_listarg), retmatchpos ? "matchfuzzypos()" : "matchfuzzy()");
+ semsg(_(e_argument_of_str_must_be_list),
+ retmatchpos ? "matchfuzzypos()" : "matchfuzzy()");
return;
}
if (argvars[1].v_type != VAR_STRING