patch 8.2.4008: error messages are spread out
Problem: Error messages are spread out.
Solution: Move more error messages to errors.h.
diff --git a/src/match.c b/src/match.c
index 8b175f3..6bd2b8f 100644
--- a/src/match.c
+++ b/src/match.c
@@ -45,8 +45,7 @@
return -1;
if (id < -1 || id == 0)
{
- semsg(_("E799: Invalid ID: %d (must be greater than or equal to 1)"),
- id);
+ semsg(_(e_invalid_id_nr_must_be_greater_than_or_equal_to_one), id);
return -1;
}
if (id != -1)
@@ -1216,7 +1215,7 @@
return;
if (id >= 1 && id <= 3)
{
- semsg(_("E798: ID is reserved for \":match\": %d"), id);
+ semsg(_(e_id_is_reserved_for_match_nr), id);
return;
}
@@ -1284,7 +1283,7 @@
// id == 3 is ok because matchaddpos() is supposed to substitute :3match
if (id == 1 || id == 2)
{
- semsg(_("E798: ID is reserved for \":match\": %d"), id);
+ semsg(_(e_id_is_reserved_for_match_nr), id);
return;
}