mirror of
https://github.com/go-sylixos/elvish.git
synced 2024-12-14 19:27:58 +08:00
Remove auto-use'ing.
This commit is contained in:
parent
ea08e1d891
commit
a356967a32
|
@ -363,8 +363,11 @@ func (ec *EvalCtx) ResolveVar(ns, name string) Variable {
|
|||
}
|
||||
return sharedVariable{ec.Store, name}
|
||||
default:
|
||||
use(ec, ns, nil)
|
||||
return ec.Modules[ns][name]
|
||||
if ns, ok := ec.Modules[ns]; ok {
|
||||
return ns[name]
|
||||
} else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user