1
1
Fork 0
mirror of https://github.com/NixOS/nix.git synced 2025-12-04 08:00:59 +01:00

editorFor: take a pos object instead

This commit is contained in:
zimbatm 2019-10-28 21:36:34 +01:00
parent ec448f8bb6
commit 3774fe55fd
No known key found for this signature in database
GPG key ID: 71BAF6D40C1D63D7
4 changed files with 12 additions and 16 deletions

View file

@ -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);