diff options
author | Bram Moolenaar <Bram@vim.org> | 2016-11-10 20:01:45 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2016-11-10 20:01:45 +0100 |
commit | 95f096030ed1a8afea028f2ea295d6f6a70f466f (patch) | |
tree | 9b1dcdbbe678ad1a3152f5cfd70a136efce6bc92 /src/getchar.c | |
parent | 459ca563128f2edb7e3bb190090bbb755a56dd55 (diff) |
patch 8.0.0074v8.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.
Diffstat (limited to 'src/getchar.c')
-rw-r--r-- | src/getchar.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/getchar.c b/src/getchar.c index 55db53767a..3657433a51 100644 --- 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 */ |