summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/main.cc10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/main.cc b/src/main.cc
index 48d4e3ab..4ec8effa 100644
--- a/src/main.cc
+++ b/src/main.cc
@@ -1164,8 +1164,14 @@ int main(int argc, char* argv[])
}
}
String new_files;
- for (auto name : files)
- new_files += format("edit '{}';", escape(real_path(name), "'", '\\'));
+ for (auto name : files) {
+ 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);
}