mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-23 22:46:16 +02:00
Make tab-completion work on builtins
This commit is contained in:
parent
e91160021f
commit
dc670a173a
1 changed files with 4 additions and 1 deletions
|
@ -384,8 +384,11 @@ void NixRepl::initEnv()
|
||||||
env = &state.allocEnv(envSize);
|
env = &state.allocEnv(envSize);
|
||||||
env->up = &state.baseEnv;
|
env->up = &state.baseEnv;
|
||||||
displ = 0;
|
displ = 0;
|
||||||
varNames.clear();
|
|
||||||
staticEnv.vars.clear();
|
staticEnv.vars.clear();
|
||||||
|
|
||||||
|
varNames.clear();
|
||||||
|
foreach (StaticEnv::Vars::iterator, i, state.staticBaseEnv.vars)
|
||||||
|
varNames.insert(i->first);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue