Merge remote-tracking branch 'krobelus/kak-c-initial-buffer-pos'

This commit is contained in:
Maxime Coste 2020-05-03 13:20:44 +10:00
commit f4efde7e08

View File

@ -1164,8 +1164,14 @@ int main(int argc, char* argv[])
} }
} }
String new_files; String new_files;
for (auto name : files) for (auto name : files) {
new_files += format("edit '{}';", escape(real_path(name), "'", '\\')); new_files += format("edit '{}'", escape(real_path(name), "'", '\\'));
if (init_coord) {
new_files += format(" {} {}", init_coord->line + 1, init_coord->column + 1);
init_coord.reset();
}
new_files += ";";
}
return run_client(*server_session, {}, new_files + client_init, init_coord, ui_type, false); return run_client(*server_session, {}, new_files + client_init, init_coord, ui_type, false);
} }