From 37deeb32d345f56393cd5d9e4b1c23565de196bf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Mangano?= Date: Fri, 25 Jul 2025 16:32:28 +0900 Subject: [PATCH] =?UTF-8?q?Add=20--=20to=20the=20editor=E2=80=99s=20comman?= =?UTF-8?q?d=20line?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit While that may not be supported by all editors, that should be supported by most and avoids ambiguous option interpretation. --- src/system.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/system.cc b/src/system.cc index f8a0992..7bf1920 100644 --- a/src/system.cc +++ b/src/system.cc @@ -239,7 +239,7 @@ std::string ot::shell_escape(std::string_view word) void ot::run_editor(std::string_view editor, std::string_view path) { - std::string command = std::string(editor) + " " + shell_escape(path); + std::string command = std::string(editor) + " -- " + shell_escape(path); int status = system(command.c_str()); if (status == -1)