0
0
mirror of https://github.com/vim/vim.git synced 2025-09-24 03:44:06 -04:00

patch 8.2.3985: error messages are spread out

Problem:    Error messages are spread out.
Solution:   Move more error messages to errors.h.
This commit is contained in:
Bram Moolenaar
2022-01-02 19:25:26 +00:00
parent 3d0da09bb2
commit ac78dd4a35
23 changed files with 285 additions and 104 deletions

View File

@@ -2713,7 +2713,7 @@ u_undoredo(int undo)
|| bot > curbuf->b_ml.ml_line_count + 1)
{
unblock_autocmds();
iemsg(_("E438: u_undo: line numbers wrong"));
iemsg(_(e_u_undo_line_numbers_wrong));
changed(); // don't want UNCHANGED now
return;
}
@@ -3285,7 +3285,7 @@ u_get_headentry(void)
{
if (curbuf->b_u_newhead == NULL || curbuf->b_u_newhead->uh_entry == NULL)
{
iemsg(_("E439: undo list corrupt"));
iemsg(_(e_undo_list_corrupt));
return NULL;
}
return curbuf->b_u_newhead->uh_entry;
@@ -3317,7 +3317,7 @@ u_getbot(void)
uep->ue_bot = uep->ue_top + uep->ue_size + 1 + extra;
if (uep->ue_bot < 1 || uep->ue_bot > curbuf->b_ml.ml_line_count)
{
iemsg(_("E440: undo line missing"));
iemsg(_(e_undo_line_missing));
uep->ue_bot = uep->ue_top + 1; // assume all lines deleted, will
// get all the old lines back
// without deleting the current