Mercurial > vim
diff src/undo.c @ 10359:66f1b5bf3fa6 v8.0.0074
commit https://github.com/vim/vim/commit/95f096030ed1a8afea028f2ea295d6f6a70f466f
Author: Bram Moolenaar <Bram@vim.org>
Date: Thu Nov 10 20:01:45 2016 +0100
patch 8.0.0074
Problem: Cannot make Vim fail on an internal error.
Solution: Add IEMSG() and IEMSG2(). (Domenique Pelle) Avoid reporting an
internal error without mentioning where.
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Thu, 10 Nov 2016 20:15:05 +0100 |
parents | 9d282593ba24 |
children | de77fa909414 |
line wrap: on
line diff
--- a/src/undo.c +++ b/src/undo.c @@ -2582,7 +2582,7 @@ undo_time( if (uhp == NULL || uhp->uh_walk != mark) { /* Need to redo more but can't find it... */ - EMSG2(_(e_intern2), "undo_time()"); + internal_error("undo_time()"); break; } } @@ -2654,7 +2654,7 @@ u_undoredo(int undo) #ifdef FEAT_AUTOCMD unblock_autocmds(); #endif - EMSG(_("E438: u_undo: line numbers wrong")); + IEMSG(_("E438: u_undo: line numbers wrong")); changed(); /* don't want UNCHANGED now */ return; } @@ -3234,7 +3234,7 @@ u_get_headentry(void) { if (curbuf->b_u_newhead == NULL || curbuf->b_u_newhead->uh_entry == NULL) { - EMSG(_("E439: undo list corrupt")); + IEMSG(_("E439: undo list corrupt")); return NULL; } return curbuf->b_u_newhead->uh_entry; @@ -3266,7 +3266,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) { - EMSG(_("E440: undo line missing")); + IEMSG(_("E440: 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