diff options
author | zimbatm <zimbatm@zimbatm.com> | 2019-10-28 21:36:34 +0100 |
---|---|---|
committer | zimbatm <zimbatm@zimbatm.com> | 2019-10-28 21:36:34 +0100 |
commit | 3774fe55fd6c96e80cc91e13fe0a231ce836ac47 (patch) | |
tree | 1923c36ab6c05268163eb788d75224e2bf8790b9 /src/nix/edit.cc | |
parent | ec448f8bb694b6f9546e49fe6a79b86ff2b2f90a (diff) |
editorFor: take a pos object instead
Diffstat (limited to 'src/nix/edit.cc')
-rw-r--r-- | src/nix/edit.cc | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/nix/edit.cc b/src/nix/edit.cc index d0607747d..553765f13 100644 --- a/src/nix/edit.cc +++ b/src/nix/edit.cc @@ -37,12 +37,10 @@ struct CmdEdit : InstallableCommand auto v = installable->toValue(*state); Pos pos = findDerivationFilename(*state, *v, installable->what()); - std::string filename(pos.file); - int lineno(pos.line); stopProgressBar(); - auto args = editorFor(filename, lineno); + auto args = editorFor(pos); execvp(args.front().c_str(), stringsToCharPtrs(args).data()); |