mirror of
https://github.com/vim/vim.git
synced 2025-07-26 11:04:33 -04:00
patch 8.2.1209: Vim9: test failure
Problem: Vim9: test failure. Solution: Add missing changes to hashtab.
This commit is contained in:
parent
49fe0d6b28
commit
21c16f868d
@ -236,6 +236,7 @@ hash_add_item(
|
|||||||
return FAIL;
|
return FAIL;
|
||||||
|
|
||||||
++ht->ht_used;
|
++ht->ht_used;
|
||||||
|
++ht->ht_changed;
|
||||||
if (hi->hi_key == NULL)
|
if (hi->hi_key == NULL)
|
||||||
++ht->ht_filled;
|
++ht->ht_filled;
|
||||||
hi->hi_key = key;
|
hi->hi_key = key;
|
||||||
@ -271,6 +272,7 @@ hash_set(hashitem_T *hi, char_u *key)
|
|||||||
hash_remove(hashtab_T *ht, hashitem_T *hi)
|
hash_remove(hashtab_T *ht, hashitem_T *hi)
|
||||||
{
|
{
|
||||||
--ht->ht_used;
|
--ht->ht_used;
|
||||||
|
++ht->ht_changed;
|
||||||
hi->hi_key = HI_KEY_REMOVED;
|
hi->hi_key = HI_KEY_REMOVED;
|
||||||
hash_may_resize(ht, 0);
|
hash_may_resize(ht, 0);
|
||||||
}
|
}
|
||||||
@ -448,6 +450,7 @@ hash_may_resize(
|
|||||||
ht->ht_array = newarray;
|
ht->ht_array = newarray;
|
||||||
ht->ht_mask = newmask;
|
ht->ht_mask = newmask;
|
||||||
ht->ht_filled = ht->ht_used;
|
ht->ht_filled = ht->ht_used;
|
||||||
|
++ht->ht_changed;
|
||||||
ht->ht_error = FALSE;
|
ht->ht_error = FALSE;
|
||||||
|
|
||||||
return OK;
|
return OK;
|
||||||
|
@ -754,6 +754,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
1209,
|
||||||
/**/
|
/**/
|
||||||
1208,
|
1208,
|
||||||
/**/
|
/**/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user