From 3f821d6de2586d921fb23e2facb4764ef9eb3294 Mon Sep 17 00:00:00 2001 From: Ernie Rael Date: Wed, 24 Apr 2024 20:07:50 +0200 Subject: patch 9.1.0369: Vim9: problem when importing autoloaded scripts Problem: Vim9: problem when importing autoloaded scripts Solution: In `:def` handle storing to vim9 autoload export (Ernie Rael) Problem occurs when `import autoload ./.../autoload/...`. The autoload in the specified path causes the use of an autoload_prefix which combines with the `import autoload` to create trouble. In `generate_store_var()` `case dest_script` use ISN_STOREEXPORT, when needed, instead of ISN_STORES. When executing ISN_STOREEXPORT, check for autoload_prefix. fixes: #14606 closes: #14615 Signed-off-by: Ernie Rael Signed-off-by: Christian Brabandt Signed-off-by: Yegappan Lakshmanan --- src/evalvars.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/evalvars.c') diff --git a/src/evalvars.c b/src/evalvars.c index b70a3cd394..6facbeb138 100644 --- a/src/evalvars.c +++ b/src/evalvars.c @@ -4235,6 +4235,7 @@ failed: * - Whether the variable is read-only * - Whether the variable value is locked * - Whether the variable is locked + * NOTE: "name" is only used for error messages. */ int var_check_permission(dictitem_T *di, char_u *name) -- cgit v1.2.3