summaryrefslogtreecommitdiffstats
path: root/src/vim9.h
diff options
context:
space:
mode:
authorErnie Rael <errael@raelity.com>2024-04-24 20:07:50 +0200
committerChristian Brabandt <cb@256bit.org>2024-04-24 20:07:50 +0200
commit3f821d6de2586d921fb23e2facb4764ef9eb3294 (patch)
treec576910f877e4e43093a534172c1a4e7bdf329c4 /src/vim9.h
parent04e8943556fbe2e53ce611f753141442bc8c655a (diff)
patch 9.1.0369: Vim9: problem when importing autoloaded scriptsv9.1.0369
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 <errael@raelity.com> Signed-off-by: Christian Brabandt <cb@256bit.org> Signed-off-by: Yegappan Lakshmanan <yegappan@yahoo.com>
Diffstat (limited to 'src/vim9.h')
-rw-r--r--src/vim9.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/vim9.h b/src/vim9.h
index 65de618207..54938fe20c 100644
--- a/src/vim9.h
+++ b/src/vim9.h
@@ -780,6 +780,7 @@ typedef enum {
dest_vimvar,
dest_class_member,
dest_script,
+ dest_script_v9,
dest_reg,
dest_expr,
} assign_dest_T;