From dc670a173ab22d344c5d77d502798f0296f572cc Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Mon, 9 Sep 2013 17:22:42 +0200 Subject: [PATCH] Make tab-completion work on builtins --- nix-repl.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/nix-repl.cc b/nix-repl.cc index 012fdfe1e..98d27b435 100644 --- a/nix-repl.cc +++ b/nix-repl.cc @@ -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); }