Use /usr/bin/editor if exists.

This commit is contained in:
chriseth
2018-03-15 18:20:23 +01:00
parent 9e1095608d
commit ea8d5f8afc
+2
View File
@@ -263,6 +263,8 @@ int main(int argc, char *argv[])
{
if (getenv("EDITOR"))
SyntaxTestTool::editor = getenv("EDITOR");
else if (fs::exists("/usr/bin/editor"))
SyntaxTestTool::editor = "/usr/bin/editor";
fs::path testPath;
bool formatted = true;