1
0
forked from aniani/vim

patch 8.2.2225: Vim9: error when using :import in legacy script twice

Problem:    Vim9: error when using :import in legacy script twice.
Solution:   Make it possible to redefine an import when reloading.
This commit is contained in:
Bram Moolenaar
2020-12-27 13:39:50 +01:00
parent 07a65d26e7
commit a629495530
7 changed files with 116 additions and 43 deletions

View File

@@ -2416,7 +2416,7 @@ compile_load_scriptvar(
import = find_imported(name, 0, cctx);
if (import != NULL)
{
if (import->imp_all)
if (import->imp_flags & IMP_FLAGS_STAR)
{
char_u *p = skipwhite(*end);
char_u *exp_name;