patch 8.2.3960: error messages are spread out
Problem: Error messages are spread out.
Solution: Move more errors to errors.h.
diff --git a/src/arglist.c b/src/arglist.c
index 2db9b9e..d159f3f 100644
--- a/src/arglist.c
+++ b/src/arglist.c
@@ -839,7 +839,7 @@
{
if (curwin->w_arg_idx >= ARGCOUNT)
{
- emsg(_("E610: No argument to delete"));
+ emsg(_(e_no_argument_to_delete));
return;
}
eap->line1 = eap->line2 = curwin->w_arg_idx + 1;
@@ -1129,7 +1129,7 @@
else if (wpnext->w_frame->fr_parent
!= curwin->w_frame->fr_parent)
{
- emsg(_("E249: window layout changed unexpectedly"));
+ emsg(_(e_window_layout_changed_unexpectedly));
i = count;
break;
}