aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/hashtab.c
diff options
context:
space:
mode:
authorMichael Schupikov <michael@schupikov.de>2017-09-23 09:56:44 +0200
committerJames McCoy <jamessan@jamessan.com>2017-12-15 15:50:58 -0500
commitd5bce42b524708a54243658e87b1e3bd9c7acdf3 (patch)
tree2707be6b36b8b5a920bfd73f1b60da011b7e1ced /src/nvim/hashtab.c
parent6ff13d78b7eb0a1fae2e2e8cdd054072e1467158 (diff)
downloadrneovim-d5bce42b524708a54243658e87b1e3bd9c7acdf3.tar.gz
rneovim-d5bce42b524708a54243658e87b1e3bd9c7acdf3.tar.bz2
rneovim-d5bce42b524708a54243658e87b1e3bd9c7acdf3.zip
vim-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. https://github.com/vim/vim/commit/95f096030ed1a8afea028f2ea295d6f6a70f466f Signed-off-by: Michael Schupikov <michael@schupikov.de>
Diffstat (limited to 'src/nvim/hashtab.c')
-rw-r--r--src/nvim/hashtab.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/hashtab.c b/src/nvim/hashtab.c
index 3397788b00..526bc284a4 100644
--- a/src/nvim/hashtab.c
+++ b/src/nvim/hashtab.c
@@ -208,7 +208,7 @@ int hash_add(hashtab_T *ht, char_u *key)
hash_T hash = hash_hash(key);
hashitem_T *hi = hash_lookup(ht, (const char *)key, STRLEN(key), hash);
if (!HASHITEM_EMPTY(hi)) {
- EMSG2(_(e_intern2), "hash_add()");
+ internal_error("hash_add()");
return FAIL;
}
hash_add_item(ht, hi, key, hash);