Do not try to access the local client if it was not succesfully created
This commit is contained in:
parent
4d230e4051
commit
a051250204
|
@ -510,9 +510,12 @@ int run_server(StringView session, StringView init_command,
|
||||||
local_client = client_manager.create_client(
|
local_client = client_manager.create_client(
|
||||||
create_local_ui(dummy_ui), get_env_vars(), init_command);
|
create_local_ui(dummy_ui), get_env_vars(), init_command);
|
||||||
|
|
||||||
|
if (local_client)
|
||||||
|
{
|
||||||
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));
|
||||||
|
}
|
||||||
|
|
||||||
if (startup_error)
|
if (startup_error)
|
||||||
local_client->print_status({
|
local_client->print_status({
|
||||||
|
|
Loading…
Reference in New Issue
Block a user