summaryrefslogtreecommitdiff
path: root/src/edit.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2016-11-10 20:01:45 +0100
committerBram Moolenaar <Bram@vim.org>2016-11-10 20:01:45 +0100
commit95f096030ed1a8afea028f2ea295d6f6a70f466f (patch)
tree9b1dcdbbe678ad1a3152f5cfd70a136efce6bc92 /src/edit.c
parent459ca563128f2edb7e3bb190090bbb755a56dd55 (diff)
downloadvim-git-95f096030ed1a8afea028f2ea295d6f6a70f466f.tar.gz
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/edit.c')
-rw-r--r--src/edit.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/edit.c b/src/edit.c
index 3a0e18841..0d9e9d4a4 100644
--- a/src/edit.c
+++ b/src/edit.c
@@ -2299,7 +2299,7 @@ vim_is_ctrl_x_key(int c)
case CTRL_X_EVAL:
return (c == Ctrl_P || c == Ctrl_N);
}
- EMSG(_(e_internal));
+ internal_error("vim_is_ctrl_x_key()");
return FALSE;
}
@@ -5431,7 +5431,7 @@ ins_complete(int c, int enable_pum)
}
else
{
- EMSG2(_(e_intern2), "ins_complete()");
+ internal_error("ins_complete()");
return FAIL;
}