1
0
forked from aniani/vim

patch 8.2.3907: error messages are spread out

Problem:    Error messages are spread out.
Solution:   Move error messages to errors.h.  Avoid duplicates.
This commit is contained in:
Bram Moolenaar
2021-12-26 20:20:34 +00:00
parent 1f318c6eac
commit c553a21e18
6 changed files with 61 additions and 30 deletions

View File

@@ -687,7 +687,7 @@ do_move(linenr_T line1, linenr_T line2, linenr_T dest)
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 @@ filterend:
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)
{