diff options
| author | bfredl <bjorn.linse@gmail.com> | 2022-03-16 16:05:40 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-03-16 16:05:40 +0100 |
| commit | 4e5e0076cb643b52d762f226b27f22c8fb837567 (patch) | |
| tree | 572699fc6ed68c92a8fab6b8f41be15423899f1f /src/nvim/msgpack_rpc | |
| parent | fa79a016bc894d3f89eddc7744868d2dd5458d51 (diff) | |
| parent | f01d203b70f426c1538813b3bacb4483e914ab44 (diff) | |
| download | rneovim-4e5e0076cb643b52d762f226b27f22c8fb837567.tar.gz rneovim-4e5e0076cb643b52d762f226b27f22c8fb837567.tar.bz2 rneovim-4e5e0076cb643b52d762f226b27f22c8fb837567.zip | |
Merge pull request #17708 from bfredl/ui_client
feat(ui): UI client episode II: event handlers
Diffstat (limited to 'src/nvim/msgpack_rpc')
| -rw-r--r-- | src/nvim/msgpack_rpc/channel.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/nvim/msgpack_rpc/channel.c b/src/nvim/msgpack_rpc/channel.c index f4e836fa81..48ecd5d0ea 100644 --- a/src/nvim/msgpack_rpc/channel.c +++ b/src/nvim/msgpack_rpc/channel.c @@ -547,12 +547,8 @@ 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) { + if (channel->streamtype == kChannelStreamStdio + || channel->id == ui_client_channel_id) { multiqueue_put(main_loop.fast_events, exit_event, 0); } } |