nix repl: also handle lambda edit

This commit is contained in:
Jonas Chevalier 2019-10-28 21:37:22 +01:00
parent 3774fe55fd
commit d407f4d15f
No known key found for this signature in database
GPG key ID: 71BAF6D40C1D63D7

View file

@ -478,6 +478,8 @@ bool NixRepl::processLine(string line)
PathSet context;
auto filename = state.coerceToString(noPos, v, context);
pos.file = state.symbols.create(filename);
} else if (v.type == tLambda) {
pos = v.lambda.fun->pos;
} else {
// assume it's a derivation
pos = findDerivationFilename(state, v, arg);