patch 8.2.4375: ctx_imports is not used
Problem: ctx_imports is not used.
Solution: Delete ctx_imports. Add missing dependency.
diff --git a/src/vim9expr.c b/src/vim9expr.c
index 1e53478..46d14dc 100644
--- a/src/vim9expr.c
+++ b/src/vim9expr.c
@@ -266,7 +266,7 @@
return OK;
}
- import = end == NULL ? NULL : find_imported(name, 0, FALSE, cctx);
+ import = end == NULL ? NULL : find_imported(name, 0, FALSE);
if (import != NULL)
{
char_u *p = skipwhite(*end);
@@ -502,7 +502,7 @@
// "var" can be script-local even without using "s:" if it
// already exists in a Vim9 script or when it's imported.
if (script_var_exists(*arg, len, cctx, NULL) == OK
- || find_imported(name, 0, FALSE, cctx) != NULL)
+ || find_imported(name, 0, FALSE) != NULL)
res = compile_load_scriptvar(cctx, name, *arg, &end, FALSE);
// When evaluating an expression and the name starts with an
@@ -681,7 +681,7 @@
}
vim_strncpy(namebuf, *arg, varlen);
- import = find_imported(name, varlen, FALSE, cctx);
+ import = find_imported(name, varlen, FALSE);
if (import != NULL)
{
semsg(_(e_cannot_use_str_itself_it_is_imported), namebuf);