Support opening new files on kak -c command line

Fixes #485
This commit is contained in:
Maxime Coste 2015-11-22 11:48:02 +00:00
parent 7cf7f121e8
commit 36bf145b02

View File

@ -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
{