diff options
author | Bram Moolenaar <Bram@vim.org> | 2020-07-14 16:15:34 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2020-07-14 16:15:34 +0200 |
commit | 21c16f868d725fffc8fa36620cba33dd5f2ed576 (patch) | |
tree | e0f56aaf185442016ae1536ffdc095056678a68b /src/hashtab.c | |
parent | 49fe0d6b289ee640cf5c49b1704bbbd641a0237d (diff) |
patch 8.2.1209: Vim9: test failurev8.2.1209
Problem: Vim9: test failure.
Solution: Add missing changes to hashtab.
Diffstat (limited to 'src/hashtab.c')
-rw-r--r-- | src/hashtab.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/hashtab.c b/src/hashtab.c index 816dcf7933..f114b28808 100644 --- a/src/hashtab.c +++ b/src/hashtab.c @@ -236,6 +236,7 @@ hash_add_item( 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_set(hashitem_T *hi, char_u *key) 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 @@ hash_may_resize( ht->ht_array = newarray; ht->ht_mask = newmask; ht->ht_filled = ht->ht_used; + ++ht->ht_changed; ht->ht_error = FALSE; return OK; |