patch 8.2.3907: error messages are spread out
Problem: Error messages are spread out.
Solution: Move error messages to errors.h. Avoid duplicates.
diff --git a/src/ex_cmds.c b/src/ex_cmds.c
index 1404526..ff978ad 100644
--- a/src/ex_cmds.c
+++ b/src/ex_cmds.c
@@ -687,7 +687,7 @@
if (dest >= line1 && dest < line2)
{
- emsg(_("E134: Cannot move a range of lines into itself"));
+ emsg(_(e_cannot_move_range_of_lines_into_itself));
return FAIL;
}
@@ -1329,7 +1329,7 @@
if (curbuf != old_curbuf)
{
--no_wait_return;
- emsg(_("E135: *Filter* Autocommands must not change current buffer"));
+ emsg(_(e_filter_autocommands_must_not_change_current_buffer));
}
else if (cmdmod.cmod_flags & CMOD_LOCKMARKS)
{