forked from lix-project/lix
nix repl: also handle lambda edit
This commit is contained in:
parent
3774fe55fd
commit
d407f4d15f
|
@ -478,6 +478,8 @@ bool NixRepl::processLine(string line)
|
||||||
PathSet context;
|
PathSet context;
|
||||||
auto filename = state.coerceToString(noPos, v, context);
|
auto filename = state.coerceToString(noPos, v, context);
|
||||||
pos.file = state.symbols.create(filename);
|
pos.file = state.symbols.create(filename);
|
||||||
|
} else if (v.type == tLambda) {
|
||||||
|
pos = v.lambda.fun->pos;
|
||||||
} else {
|
} else {
|
||||||
// assume it's a derivation
|
// assume it's a derivation
|
||||||
pos = findDerivationFilename(state, v, arg);
|
pos = findDerivationFilename(state, v, arg);
|
||||||
|
|
Loading…
Reference in a new issue