Center the initial target line

This commit is contained in:
Maxime Coste 2015-12-25 07:17:54 +00:00
parent c16b9a2ec4
commit 978e8d18b9

View File

@ -515,6 +515,7 @@ int run_server(StringView session, StringView init_command,
auto& selections = local_client->context().selections_write_only(); auto& selections = local_client->context().selections_write_only();
auto& buffer = selections.buffer(); auto& buffer = selections.buffer();
selections = SelectionList(buffer, buffer.clamp(target_line)); selections = SelectionList(buffer, buffer.clamp(target_line));
local_client->context().window().center_line(target_line);
} }
if (startup_error) if (startup_error)