]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 8.2.1209: Vim9: test failure v8.2.1209
authorBram Moolenaar <Bram@vim.org>
Tue, 14 Jul 2020 14:15:34 +0000 (16:15 +0200)
committerBram Moolenaar <Bram@vim.org>
Tue, 14 Jul 2020 14:15:34 +0000 (16:15 +0200)
Problem:    Vim9: test failure.
Solution:   Add missing changes to hashtab.

src/hashtab.c
src/version.c

index 816dcf79339e573d88d0f5407c9e15c46111b431..f114b288085e37b6b46a021825b6732e4fbaffca 100644 (file)
@@ -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;
index 3997ccf00097c768929f56aad08ab993444f30f9..f49eec9738b5a8697bb9a134193f54feb0f6be05 100644 (file)
@@ -754,6 +754,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1209,
 /**/
     1208,
 /**/