aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/msgpack_rpc/channel.c
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2017-09-06 07:25:01 +0200
committerGitHub <noreply@github.com>2017-09-06 07:25:01 +0200
commit51808a244ecaa0a40b4e8280938333d2792d8422 (patch)
tree722b303136a2dec83f3f4f14ee0b5d3aa62fa559 /src/nvim/msgpack_rpc/channel.c
parent82795c2c3a429b2725af882cad4317bed8f1b741 (diff)
parentb9d6bda53126433cbb251b47d8788d92cda9e6e4 (diff)
downloadrneovim-51808a244ecaa0a40b4e8280938333d2792d8422.tar.gz
rneovim-51808a244ecaa0a40b4e8280938333d2792d8422.tar.bz2
rneovim-51808a244ecaa0a40b4e8280938333d2792d8422.zip
Merge #7221 from justinmk/ev-focusgained
tui: schedule event instead of <FocusGained> pseudokey
Diffstat (limited to 'src/nvim/msgpack_rpc/channel.c')
-rw-r--r--src/nvim/msgpack_rpc/channel.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/nvim/msgpack_rpc/channel.c b/src/nvim/msgpack_rpc/channel.c
index 02f3854f47..88232a55de 100644
--- a/src/nvim/msgpack_rpc/channel.c
+++ b/src/nvim/msgpack_rpc/channel.c
@@ -188,12 +188,11 @@ uint64_t channel_connect(bool tcp, const char *address, int timeout,
return channel->id;
}
-/// Sends event/arguments to channel
+/// Publishes an event to a channel.
///
-/// @param id The channel id. If 0, the event will be sent to all
-/// channels that have subscribed to the event type
-/// @param name The event name, an arbitrary string
-/// @param args Array with event arguments
+/// @param id Channel id. 0 means "broadcast to all subscribed channels"
+/// @param name Event name (application-defined)
+/// @param args Array of event arguments
/// @return True if the event was sent successfully, false otherwise.
bool channel_send_event(uint64_t id, const char *name, Array args)
{
@@ -215,7 +214,6 @@ bool channel_send_event(uint64_t id, const char *name, Array args)
send_event(channel, name, args);
}
} else {
- // TODO(tarruda): Implement event broadcasting in vimscript
broadcast_event(name, args);
}