mirror of
https://github.com/neovim/neovim.git
synced 2025-10-05 09:26:30 +00:00
channels: refactor
This commit is contained in:
@@ -252,7 +252,7 @@ static void remote_ui_flush(UI *ui)
|
||||
{
|
||||
UIData *data = ui->data;
|
||||
if (data->buffer.size > 0) {
|
||||
channel_send_event(data->channel_id, "redraw", data->buffer);
|
||||
rpc_send_event(data->channel_id, "redraw", data->buffer);
|
||||
data->buffer = (Array)ARRAY_DICT_INIT;
|
||||
}
|
||||
}
|
||||
|
@@ -721,7 +721,7 @@ void nvim_subscribe(uint64_t channel_id, String event)
|
||||
char e[METHOD_MAXLEN + 1];
|
||||
memcpy(e, event.data, length);
|
||||
e[length] = NUL;
|
||||
channel_subscribe(channel_id, e);
|
||||
rpc_subscribe(channel_id, e);
|
||||
}
|
||||
|
||||
/// Unsubscribes to event broadcasts
|
||||
@@ -737,7 +737,7 @@ void nvim_unsubscribe(uint64_t channel_id, String event)
|
||||
char e[METHOD_MAXLEN + 1];
|
||||
memcpy(e, event.data, length);
|
||||
e[length] = NUL;
|
||||
channel_unsubscribe(channel_id, e);
|
||||
rpc_unsubscribe(channel_id, e);
|
||||
}
|
||||
|
||||
Integer nvim_get_color_by_name(String name)
|
||||
|
Reference in New Issue
Block a user