patch 8.2.3970: error messages are spread out
Problem: Error messages are spread out.
Solution: Move more errors to errors.h.
diff --git a/src/quickfix.c b/src/quickfix.c
index a5f3470..690c3ff 100644
--- a/src/quickfix.c
+++ b/src/quickfix.c
@@ -3629,7 +3629,7 @@
}
if (!get_list_range(&arg, &idx1, &idx2) || *arg != NUL)
{
- semsg(_(e_trailing_arg), arg);
+ semsg(_(e_trailing_characters_str), arg);
return;
}
qfl = qf_get_curlist(qi);
@@ -6106,7 +6106,7 @@
p = skip_vimgrep_pat(eap->arg, &args->spat, &args->flags);
if (p == NULL)
{
- emsg(_(e_invalpat));
+ emsg(_(e_invalid_search_pattern_or_delimiter));
return FAIL;
}
@@ -8399,7 +8399,7 @@
if (list_arg->v_type != VAR_LIST)
emsg(_(e_list_required));
else if (recursive != 0)
- emsg(_(e_au_recursive));
+ emsg(_(e_autocommand_caused_recursive_behavior));
else
{
list_T *l = list_arg->vval.v_list;