summaryrefslogtreecommitdiff
path: root/src/evalvars.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2020-02-03 20:50:59 +0100
committerBram Moolenaar <Bram@vim.org>2020-02-03 20:50:59 +0100
commit4e12a5df37ed4a47ca94a8b9393c768e8ca1f75a (patch)
tree3f3386ab89dbb5d4c813c142b852856dcd7bc1ff /src/evalvars.c
parentb283a8a6802ef8a46b17cb439f9514840c03698f (diff)
downloadvim-git-4e12a5df37ed4a47ca94a8b9393c768e8ca1f75a.tar.gz
patch 8.2.0201: cannot assign to an imported variablev8.2.0201
Problem: Cannot assign to an imported variable. Solution: Make it work.
Diffstat (limited to 'src/evalvars.c')
-rw-r--r--src/evalvars.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/evalvars.c b/src/evalvars.c
index 32c803fd9..2bbc3553b 100644
--- a/src/evalvars.c
+++ b/src/evalvars.c
@@ -2296,7 +2296,7 @@ get_var_tv(
if (tv == NULL && current_sctx.sc_version == SCRIPT_VERSION_VIM9)
{
- imported_T *import = find_imported(name, NULL);
+ imported_T *import = find_imported(name, 0, NULL);
// imported variable from another script
if (import != NULL)
@@ -2472,7 +2472,7 @@ lookup_scriptvar(char_u *name, size_t len, cctx_T *dummy UNUSED)
res = HASHITEM_EMPTY(hi) ? -1 : 1;
// if not script-local, then perhaps imported
- if (res == -1 && find_imported(p, NULL) != NULL)
+ if (res == -1 && find_imported(p, 0, NULL) != NULL)
res = 1;
if (p != buffer)