diff options
author | Bram Moolenaar <Bram@vim.org> | 2022-02-08 20:35:30 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2022-02-08 20:35:30 +0000 |
commit | dce2441a603f2c9343a4a46091283a32420d80a2 (patch) | |
tree | 649301b5de780305aa6869466f859fe86692d55a /src/vim9expr.c | |
parent | 3a5988c025f8517ba382730dc54bb13df937edb4 (diff) | |
download | vim-git-8.2.4332.tar.gz |
patch 8.2.4332: Vim9: incomplete test for existing script variable in blockv8.2.4332
Problem: Vim9: incomplete test for existing script variable in block.
Solution: Add a couple more tests. Fix uncovered problem.
Diffstat (limited to 'src/vim9expr.c')
-rw-r--r-- | src/vim9expr.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vim9expr.c b/src/vim9expr.c index 402803768..b44f9288d 100644 --- a/src/vim9expr.c +++ b/src/vim9expr.c @@ -501,7 +501,7 @@ compile_load( { // "var" can be script-local even without using "s:" if it // already exists in a Vim9 script or when it's imported. - if (script_var_exists(*arg, len, cctx) == OK + if (script_var_exists(*arg, len, cctx, NULL) == OK || find_imported(name, 0, FALSE, cctx) != NULL) res = compile_load_scriptvar(cctx, name, *arg, &end, FALSE); |