From ea8d5f8afc8cdd886be70efc8f49163af0675014 Mon Sep 17 00:00:00 2001 From: chriseth Date: Thu, 15 Mar 2018 18:20:06 +0100 Subject: Use /usr/bin/editor if exists. --- test/tools/isoltest.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/tools/isoltest.cpp b/test/tools/isoltest.cpp index 668481cf..b71f14b9 100644 --- a/test/tools/isoltest.cpp +++ b/test/tools/isoltest.cpp @@ -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; -- cgit