aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/hashtab.c
diff options
context:
space:
mode:
authorbfredl <bjorn.linse@gmail.com>2023-03-25 19:26:45 +0100
committerGitHub <noreply@github.com>2023-03-25 19:26:45 +0100
commit13eb6c2554653518098396e31fe04dfa82f5106f (patch)
tree67763a76735e43b3aa97b6c6f8c8d38784722baa /src/nvim/hashtab.c
parentfe9cbcb3a5c82932ecfb8f49d07e98a1fc2b31e5 (diff)
parent6d267ad30cf539f520b46e3c92939f7031ce116f (diff)
downloadrneovim-13eb6c2554653518098396e31fe04dfa82f5106f.tar.gz
rneovim-13eb6c2554653518098396e31fe04dfa82f5106f.tar.bz2
rneovim-13eb6c2554653518098396e31fe04dfa82f5106f.zip
Merge pull request #22762 from bfredl/hl2cterm
fix(api): make nvim_get_hl return 'cterm' attrs properly
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 8f4c7b1d80..04ecdd46a8 100644
--- a/src/nvim/hashtab.c
+++ b/src/nvim/hashtab.c
@@ -207,7 +207,7 @@ int hash_add(hashtab_T *ht, char *key)
hash_T hash = hash_hash(key);
hashitem_T *hi = hash_lookup(ht, key, strlen(key), hash);
if (!HASHITEM_EMPTY(hi)) {
- internal_error("hash_add()");
+ siemsg(_("E685: Internal error: hash_add(): duplicate key \"%s\""), key);
return FAIL;
}
hash_add_item(ht, hi, key, hash);