From 978e8d18b923391c17eb81010dd082bb5b7a9b52 Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Fri, 25 Dec 2015 07:17:54 +0000 Subject: [PATCH] Center the initial target line --- src/main.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main.cc b/src/main.cc index 6ac0fc70..9f5f916e 100644 --- a/src/main.cc +++ b/src/main.cc @@ -515,6 +515,7 @@ int run_server(StringView session, StringView init_command, auto& selections = local_client->context().selections_write_only(); auto& buffer = selections.buffer(); selections = SelectionList(buffer, buffer.clamp(target_line)); + local_client->context().window().center_line(target_line); } if (startup_error)