1
1
mirror of https://github.com/mawww/kakoune.git synced 2024-12-26 13:02:01 +03:00

Support kill session inside init command

This commit is contained in:
Maxime Coste 2016-09-06 22:46:27 +01:00
parent c1d7f79a52
commit c63c92cbf7

View File

@ -557,6 +557,8 @@ int run_server(StringView session, StringView init_command,
else else
buffer_manager.create_buffer("*scratch*", Buffer::Flags::None); buffer_manager.create_buffer("*scratch*", Buffer::Flags::None);
try
{
if (not daemon) if (not daemon)
{ {
local_client = client_manager.create_client( local_client = client_manager.create_client(
@ -577,8 +579,6 @@ int run_server(StringView session, StringView init_command,
} }
} }
try
{
while (not terminate and (not client_manager.empty() or daemon)) while (not terminate and (not client_manager.empty() or daemon))
{ {
client_manager.redraw_clients(); client_manager.redraw_clients();