fix(eval): change some tv_dict_add() usages back to hash_add()

Needed for Vim patch 8.2.2920.
This commit is contained in:
zeertzjq
2022-11-06 09:35:02 +08:00
parent be90bfbb00
commit dc17df3190
2 changed files with 6 additions and 6 deletions

View File

@@ -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;
}