aboutsummaryrefslogtreecommitdiff
path: root/src/libcmd/repl.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/libcmd/repl.cc')
-rw-r--r--src/libcmd/repl.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libcmd/repl.cc b/src/libcmd/repl.cc
index 9002fa555..c7fd0db91 100644
--- a/src/libcmd/repl.cc
+++ b/src/libcmd/repl.cc
@@ -594,8 +594,8 @@ bool NixRepl::processLine(std::string line)
return {path, 0};
} else if (v.isLambda()) {
auto pos = state->positions[v.lambda.fun->pos];
- if (auto path = std::get_if<Path>(&pos.origin))
- return {SourcePath(CanonPath(*path)), pos.line};
+ if (auto path = std::get_if<SourcePath>(&pos.origin))
+ return {*path, pos.line};
else
throw Error("'%s' cannot be shown in an editor", pos);
} else {