From 36bf145b02a7cb670f249f6ae1c1ba8d728a4f5c Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Sun, 22 Nov 2015 11:48:02 +0000 Subject: [PATCH] Support opening new files on kak -c command line Fixes #485 --- src/main.cc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/main.cc b/src/main.cc index 83d9519b..7242ff96 100644 --- a/src/main.cc +++ b/src/main.cc @@ -720,7 +720,11 @@ int main(int argc, char* argv[]) return -1; } } - return run_client(*server_session, init_command); + String new_files; + for (auto name : parser) + new_files += format("edit '{}';", escape(real_path(name), "'", '\\')); + + return run_client(*server_session, new_files + init_command); } else {