1
0
forked from aniani/vim

patch 9.1.1154: Vim9: not able to use autoload class accross scripts

Problem:  Vim9: not able to use autoload class accross scripts
Solution: make it work, re-enable the test (Yegappan Lakshmanan)

fixes: #15031
closes: #16748

Signed-off-by: Yegappan Lakshmanan <yegappan@yahoo.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
Yegappan Lakshmanan
2025-02-27 19:12:00 +01:00
committed by Christian Brabandt
parent 3d75ec7401
commit e9ae35f265
4 changed files with 111 additions and 72 deletions

View File

@@ -3087,6 +3087,9 @@ eval_variable(
dictitem_T *v = find_var_in_ht(ht, 0, name,
flags & EVAL_VAR_NOAUTOLOAD);
if (v == NULL)
v = find_var_autoload_prefix(name, sid, NULL, NULL);
if (v != NULL)
{
tv = &v->di_tv;