summaryrefslogtreecommitdiff
path: root/src/structs.h
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2022-03-30 21:12:27 +0100
committerBram Moolenaar <Bram@vim.org>2022-03-30 21:12:27 +0100
commitc0ceeeb839b8c6bebd3a2abd1c07d40ec3c6edca (patch)
tree2f51e084f45dbe3437520d32f83e67fb9704aa6b /src/structs.h
parentb4ad3b0deac12674a7773311890b48fd39c6807c (diff)
downloadvim-git-c0ceeeb839b8c6bebd3a2abd1c07d40ec3c6edca.tar.gz
patch 8.2.4650: "import autoload" only works with using 'runtimepath'v8.2.4650
Problem: "import autoload" only works with using 'runtimepath'. Solution: Also support a relative and absolute file name.
Diffstat (limited to 'src/structs.h')
-rw-r--r--src/structs.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/structs.h b/src/structs.h
index 36eb054fa..737b9f90e 100644
--- a/src/structs.h
+++ b/src/structs.h
@@ -1833,7 +1833,7 @@ typedef struct {
*/
typedef struct
{
- char_u *sn_name;
+ char_u *sn_name; // full path of script file
int sn_script_seq; // latest sctx_T sc_seq value
// "sn_vars" stores the s: variables currently valid. When leaving a block
@@ -1864,9 +1864,12 @@ typedef struct
char_u *sn_save_cpo; // 'cpo' value when :vim9script found
char sn_is_vimrc; // .vimrc file, do not restore 'cpo'
- // for "vim9script autoload" this is "dir#scriptname#"
+ // for a Vim9 script under "rtp/autoload/" this is "dir#scriptname#"
char_u *sn_autoload_prefix;
+ // TRUE for a script used with "import autoload './dirname/script.vim'"
+ int sn_import_autoload;
+
# ifdef FEAT_PROFILE
int sn_prof_on; // TRUE when script is/was profiled
int sn_pr_force; // forceit: profile functions in this script