patch 8.2.1209: Vim9: test failure
Problem: Vim9: test failure.
Solution: Add missing changes to hashtab.
diff --git a/src/hashtab.c b/src/hashtab.c
index 816dcf7..f114b28 100644
--- a/src/hashtab.c
+++ b/src/hashtab.c
@@ -236,6 +236,7 @@
return FAIL;
++ht->ht_used;
+ ++ht->ht_changed;
if (hi->hi_key == NULL)
++ht->ht_filled;
hi->hi_key = key;
@@ -271,6 +272,7 @@
hash_remove(hashtab_T *ht, hashitem_T *hi)
{
--ht->ht_used;
+ ++ht->ht_changed;
hi->hi_key = HI_KEY_REMOVED;
hash_may_resize(ht, 0);
}
@@ -448,6 +450,7 @@
ht->ht_array = newarray;
ht->ht_mask = newmask;
ht->ht_filled = ht->ht_used;
+ ++ht->ht_changed;
ht->ht_error = FALSE;
return OK;