mirror of
https://github.com/vim/vim.git
synced 2025-07-26 11:04:33 -04:00
patch 8.2.4054: Vim9 script test fails
Problem: Vim9 script test fails. Solution: Add missing change.
This commit is contained in:
parent
fe2ef0b2cd
commit
577bd85d55
@ -750,6 +750,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 */
|
||||||
|
/**/
|
||||||
|
4054,
|
||||||
/**/
|
/**/
|
||||||
4053,
|
4053,
|
||||||
/**/
|
/**/
|
||||||
|
@ -541,7 +541,19 @@ get_script_item_idx(int sid, char_u *name, int check_writable, cctx_T *cctx)
|
|||||||
ht = &SCRIPT_VARS(sid);
|
ht = &SCRIPT_VARS(sid);
|
||||||
di = find_var_in_ht(ht, 0, name, TRUE);
|
di = find_var_in_ht(ht, 0, name, TRUE);
|
||||||
if (di == NULL)
|
if (di == NULL)
|
||||||
|
{
|
||||||
|
if (si->sn_autoload_prefix != NULL)
|
||||||
|
{
|
||||||
|
hashitem_T *hi;
|
||||||
|
|
||||||
|
// A variable exported from an autoload script is in the global
|
||||||
|
// variables, we can find it in the all_vars table.
|
||||||
|
hi = hash_find(&si->sn_all_vars.dv_hashtab, name);
|
||||||
|
if (!HASHITEM_EMPTY(hi))
|
||||||
|
return HI2SAV(hi)->sav_var_vals_idx;
|
||||||
|
}
|
||||||
return -2;
|
return -2;
|
||||||
|
}
|
||||||
|
|
||||||
// Now find the svar_T index in sn_var_vals.
|
// Now find the svar_T index in sn_var_vals.
|
||||||
for (idx = 0; idx < si->sn_var_vals.ga_len; ++idx)
|
for (idx = 0; idx < si->sn_var_vals.ga_len; ++idx)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user