Mercurial > vim
diff src/getchar.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 | 4aead6a9b7a9 |
children | 055b1633aed7 |
line wrap: on
line diff
--- a/src/getchar.c +++ b/src/getchar.c @@ -250,7 +250,7 @@ add_buff( } else if (buf->bh_curr == NULL) /* buffer has already been read */ { - EMSG(_("E222: Add to read buffer")); + IEMSG(_("E222: Add to read buffer")); return; } else if (buf->bh_index != 0) @@ -1321,11 +1321,11 @@ alloc_typebuf(void) free_typebuf(void) { if (typebuf.tb_buf == typebuf_init) - EMSG2(_(e_intern2), "Free typebuf 1"); + internal_error("Free typebuf 1"); else vim_free(typebuf.tb_buf); if (typebuf.tb_noremap == noremapbuf_init) - EMSG2(_(e_intern2), "Free typebuf 2"); + internal_error("Free typebuf 2"); else vim_free(typebuf.tb_noremap); } @@ -4868,7 +4868,7 @@ makemap( c1 = 'l'; break; default: - EMSG(_("E228: makemap: Illegal mode")); + IEMSG(_("E228: makemap: Illegal mode")); return FAIL; } do /* do this twice if c2 is set, 3 times with c3 */