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/cmdhist.c b/src/cmdhist.c
index 0ac3ff6..8057344 100644
--- a/src/cmdhist.c
+++ b/src/cmdhist.c
@@ -724,7 +724,7 @@
else
{
*end = i;
- semsg(_(e_trailing_arg), arg);
+ semsg(_(e_trailing_characters_str), arg);
return;
}
}
@@ -736,7 +736,7 @@
end = arg;
if (!get_list_range(&end, &hisidx1, &hisidx2) || *end != NUL)
{
- semsg(_(e_trailing_arg), end);
+ semsg(_(e_trailing_characters_str), end);
return;
}