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)