mirror of
https://github.com/neovim/neovim.git
synced 2025-10-02 16:08:36 +00:00
fix(eval): change some tv_dict_add() usages back to hash_add()
Needed for Vim patch 8.2.2920.
This commit is contained in:
@@ -1331,7 +1331,7 @@ void set_var_const(const char *name, const size_t name_len, typval_T *const tv,
|
||||
|
||||
v = xmalloc(sizeof(dictitem_T) + strlen(varname));
|
||||
STRCPY(v->di_key, varname);
|
||||
if (tv_dict_add(dict, v) == FAIL) {
|
||||
if (hash_add(ht, v->di_key) == FAIL) {
|
||||
xfree(v);
|
||||
return;
|
||||
}
|
||||
|
Reference in New Issue
Block a user