changeset 21317:883aa425656a v8.2.1209

patch 8.2.1209: Vim9: test failure Commit: https://github.com/vim/vim/commit/21c16f868d725fffc8fa36620cba33dd5f2ed576 Author: Bram Moolenaar <Bram@vim.org> Date: Tue Jul 14 16:15:34 2020 +0200 patch 8.2.1209: Vim9: test failure Problem: Vim9: test failure. Solution: Add missing changes to hashtab.
author Bram Moolenaar <Bram@vim.org>
date Tue, 14 Jul 2020 16:30:04 +0200
parents 9681f65ba9db
children b1121f5c029a
files src/hashtab.c src/version.c
diffstat 2 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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;
--- a/src/version.c
+++ b/src/version.c
@@ -755,6 +755,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    1209,
+/**/
     1208,
 /**/
     1207,