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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user