patch 8.2.3069: error messages are spread out
Problem: Error messages are spread out.
Solution: Move some error messages to errors.h. Use clearer names.
diff --git a/src/window.c b/src/window.c
index 3a68762..09067b0 100644
--- a/src/window.c
+++ b/src/window.c
@@ -130,7 +130,7 @@
do { \
if (cmdwin_type != 0) \
{ \
- emsg(_(e_cmdwin)); \
+ emsg(_(e_invalid_in_cmdline_window)); \
return; \
} \
} while (0)
@@ -187,7 +187,7 @@
? curwin->w_alt_fnum : Prenum) == NULL)
{
if (Prenum == 0)
- emsg(_(e_noalt));
+ emsg(_(e_no_alternate_file));
else
semsg(_("E92: Buffer %ld not found"), Prenum);
break;