Make tab-completion work on builtins

This commit is contained in:
Eelco Dolstra 2013-09-09 17:22:42 +02:00
parent e91160021f
commit dc670a173a

View file

@ -384,8 +384,11 @@ void NixRepl::initEnv()
env = &state.allocEnv(envSize);
env->up = &state.baseEnv;
displ = 0;
varNames.clear();
staticEnv.vars.clear();
varNames.clear();
foreach (StaticEnv::Vars::iterator, i, state.staticBaseEnv.vars)
varNames.insert(i->first);
}