aboutsummaryrefslogtreecommitdiff
path: root/src/libutil/args.hh
diff options
context:
space:
mode:
authorzimbatm <zimbatm@zimbatm.com>2019-10-28 21:36:34 +0100
committerzimbatm <zimbatm@zimbatm.com>2019-10-28 21:36:34 +0100
commit3774fe55fd6c96e80cc91e13fe0a231ce836ac47 (patch)
tree1923c36ab6c05268163eb788d75224e2bf8790b9 /src/libutil/args.hh
parentec448f8bb694b6f9546e49fe6a79b86ff2b2f90a (diff)
editorFor: take a pos object instead
Diffstat (limited to 'src/libutil/args.hh')
-rw-r--r--src/libutil/args.hh3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libutil/args.hh b/src/libutil/args.hh
index 22702c2d8..1e29bd4fa 100644
--- a/src/libutil/args.hh
+++ b/src/libutil/args.hh
@@ -5,6 +5,7 @@
#include <memory>
#include "util.hh"
+#include "nixexpr.hh"
namespace nix {
@@ -191,7 +192,7 @@ public:
Strings argvToStrings(int argc, char * * argv);
/* Helper function to generate args that invoke $EDITOR on filename:lineno */
-Strings editorFor(std::string filename, int lineno);
+Strings editorFor(Pos pos);
/* Helper function for rendering argument labels. */
std::string renderLabels(const Strings & labels);