0
0
mirror of https://github.com/vim/vim.git synced 2025-09-24 03:44:06 -04:00

patch 8.2.4332: Vim9: incomplete test for existing script variable in block

Problem:    Vim9: incomplete test for existing script variable in block.
Solution:   Add a couple more tests.  Fix uncovered problem.
This commit is contained in:
Bram Moolenaar
2022-02-08 20:35:30 +00:00
parent 3a5988c025
commit dce2441a60
7 changed files with 86 additions and 24 deletions

View File

@@ -600,7 +600,8 @@ handle_import(
goto erret;
}
else if (imported == NULL
&& check_defined(as_name, STRLEN(as_name), cctx, FALSE) == FAIL)
&& check_defined(as_name, STRLEN(as_name), cctx, NULL,
FALSE) == FAIL)
goto erret;
if (imported == NULL)