patch 8.2.4010: error messages are spread out
Problem: Error messages are spread out.
Solution: Move more error messages to errors.h.
diff --git a/src/memline.c b/src/memline.c
index 07b0f57..a42c5f1 100644
--- a/src/memline.c
+++ b/src/memline.c
@@ -621,7 +621,7 @@
mf_put(mfp, hp, FALSE, FALSE); // release previous block
if (error > 0)
- emsg(_("E843: Error while updating swap file crypt"));
+ emsg(_(e_error_while_updating_swap_file_crypt));
}
mfp->mf_old_key = NULL;
@@ -1342,7 +1342,7 @@
#else
if (b0p->b0_id[1] != BLOCK0_ID1)
{
- semsg(_("E833: %s is encrypted and this version of Vim does not support encryption"), mfp->mf_fname);
+ semsg(_(e_str_is_encrypted_and_this_version_of_vim_does_not_support_encryption), mfp->mf_fname);
goto theend;
}
#endif