summaryrefslogtreecommitdiff
path: root/src/undo.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2022-01-02 19:25:26 +0000
committerBram Moolenaar <Bram@vim.org>2022-01-02 19:25:26 +0000
commitac78dd4a352196ca4e6640f8e4caaf126afd49e3 (patch)
treec741cbf5a8f33503e42af2294afdbd4bf15b0ae9 /src/undo.c
parent3d0da09bb2d31afc611bf1c4b35796739d87ed63 (diff)
downloadvim-git-ac78dd4a352196ca4e6640f8e4caaf126afd49e3.tar.gz
patch 8.2.3985: error messages are spread outv8.2.3985
Problem: Error messages are spread out. Solution: Move more error messages to errors.h.
Diffstat (limited to 'src/undo.c')
-rw-r--r--src/undo.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/undo.c b/src/undo.c
index 49a568157..a376150fb 100644
--- a/src/undo.c
+++ b/src/undo.c
@@ -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