diff options
author | Bram Moolenaar <Bram@vim.org> | 2022-01-09 21:36:37 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2022-01-09 21:36:37 +0000 |
commit | dc4451df61a6aa12a0661817b7094fb32f09e11d (patch) | |
tree | 98d2ef08366773a3eadb41ec581b1c5e652e3114 /src/evalvars.c | |
parent | 5f25c3855071bd7e26255c68bf458b1b5cf92f39 (diff) | |
download | vim-git-dc4451df61a6aa12a0661817b7094fb32f09e11d.tar.gz |
patch 8.2.4050: Vim9: need to prefix every item in an autoload scriptv8.2.4050
Problem: Vim9: need to prefix every item in an autoload script.
Solution: First step in supporting "vim9script autoload" and "import
autoload".
Diffstat (limited to 'src/evalvars.c')
-rw-r--r-- | src/evalvars.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/evalvars.c b/src/evalvars.c index d93fed5b0..1d5aedf4c 100644 --- a/src/evalvars.c +++ b/src/evalvars.c @@ -2683,7 +2683,7 @@ eval_variable( char_u *p = STRNCMP(name, "s:", 2) == 0 ? name + 2 : name; if (sid == 0) - import = find_imported(p, 0, NULL); + import = find_imported(p, 0, TRUE, NULL); // imported variable from another script if (import != NULL || sid != 0) @@ -3015,7 +3015,7 @@ lookup_scriptitem( res = HASHITEM_EMPTY(hi) ? FAIL : OK; // if not script-local, then perhaps imported - if (res == FAIL && find_imported(p, 0, NULL) != NULL) + if (res == FAIL && find_imported(p, 0, FALSE, NULL) != NULL) res = OK; if (p != buffer) vim_free(p); @@ -3388,7 +3388,7 @@ set_var_const( if (di == NULL && var_in_vim9script) { - imported_T *import = find_imported(varname, 0, NULL); + imported_T *import = find_imported(varname, 0, FALSE, NULL); if (import != NULL) { |