patch 8.2.4005: error messages are spread out
Problem: Error messages are spread out.
Solution: Move more error messages to errors.h.
diff --git a/src/quickfix.c b/src/quickfix.c
index c2747b7..f7d35f8 100644
--- a/src/quickfix.c
+++ b/src/quickfix.c
@@ -6116,7 +6116,7 @@
p = skipwhite(p);
if (*p == NUL)
{
- emsg(_("E683: File name missing or invalid pattern"));
+ emsg(_(e_file_name_missing_or_invalid_pattern));
return FAIL;
}
@@ -7785,7 +7785,7 @@
if (buf->b_ml.ml_mfp == NULL)
{
- emsg(_("E681: Buffer is not loaded"));
+ emsg(_(e_buffer_is_not_loaded));
return FAIL;
}