aboutsummaryrefslogtreecommitdiff
path: root/src/nix/edit.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/nix/edit.cc')
-rw-r--r--src/nix/edit.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/nix/edit.cc b/src/nix/edit.cc
index a4aa40bed..d0607747d 100644
--- a/src/nix/edit.cc
+++ b/src/nix/edit.cc
@@ -36,9 +36,9 @@ struct CmdEdit : InstallableCommand
auto v = installable->toValue(*state);
- std::string filename;
- int lineno;
- std::tie(filename, lineno) = findDerivationFilename(*state, *v, installable->what());
+ Pos pos = findDerivationFilename(*state, *v, installable->what());
+ std::string filename(pos.file);
+ int lineno(pos.line);
stopProgressBar();