diff options
-rw-r--r-- | src/nix/repl.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/nix/repl.cc b/src/nix/repl.cc index 683a117f3..35c7aec66 100644 --- a/src/nix/repl.cc +++ b/src/nix/repl.cc @@ -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); |