From a4400bf8cda8ace4c4aab67bc73a1820478f46f1 Mon Sep 17 00:00:00 2001 From: bfredl Date: Sat, 12 Mar 2022 13:47:50 +0100 Subject: feat(ui): connect to remote ui (only debug messages for now) co-authored-by: hlpr98 --- src/nvim/msgpack_rpc/channel.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/nvim/msgpack_rpc') diff --git a/src/nvim/msgpack_rpc/channel.c b/src/nvim/msgpack_rpc/channel.c index 299651ee97..f4e836fa81 100644 --- a/src/nvim/msgpack_rpc/channel.c +++ b/src/nvim/msgpack_rpc/channel.c @@ -547,6 +547,11 @@ void rpc_close(Channel *channel) channel->rpc.closed = true; channel_decref(channel); + if (channel->id == ui_client_channel_id) { + // TODO(bfredl): handle this in ui_client, where os_exit() is safe + exit(0); + } + if (channel->streamtype == kChannelStreamStdio) { multiqueue_put(main_loop.fast_events, exit_event, 0); } -- cgit