aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKillTheMule <KillTheMule@users.noreply.github.com>2018-01-26 14:44:38 +0100
committerKillTheMule <KillTheMule@users.noreply.github.com>2018-05-23 22:07:27 +0200
commit9e97f14de2e693a204db39331d59778f1b4802a6 (patch)
tree86b178a4b6c30f912500125c9f46eb16a9069a14
parent79184809bb10b738c05c29a973d09bd65798b168 (diff)
downloadrneovim-9e97f14de2e693a204db39331d59778f1b4802a6.tar.gz
rneovim-9e97f14de2e693a204db39331d59778f1b4802a6.tar.bz2
rneovim-9e97f14de2e693a204db39331d59778f1b4802a6.zip
Update to latest master
-rw-r--r--src/nvim/liveupdate.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/nvim/liveupdate.c b/src/nvim/liveupdate.c
index 79318e4255..953c5b52b3 100644
--- a/src/nvim/liveupdate.c
+++ b/src/nvim/liveupdate.c
@@ -54,7 +54,7 @@ bool liveupdate_register(buf_T *buf, uint64_t channel_id)
args.items[2] = ARRAY_OBJ(linedata);
args.items[3] = BOOLEAN_OBJ(false);
- channel_send_event(channel_id, "LiveUpdateStart", args);
+ rpc_send_event(channel_id, "LiveUpdateStart", args);
return true;
}
@@ -64,7 +64,7 @@ void liveupdate_send_end(buf_T *buf, uint64_t channelid)
args.size = 1;
args.items = xcalloc(sizeof(Object), args.size);
args.items[0] = BUFFER_OBJ(buf->handle);
- channel_send_event(channelid, "LiveUpdateEnd", args);
+ rpc_send_event(channelid, "LiveUpdateEnd", args);
}
void liveupdate_unregister(buf_T *buf, uint64_t channelid)
@@ -155,7 +155,7 @@ void liveupdate_send_changes(buf_T *buf, linenr_T firstline, int64_t num_added,
}
}
args.items[4] = ARRAY_OBJ(linedata);
- if (!channel_send_event(channelid, "LiveUpdate", args)) {
+ if (!rpc_send_event(channelid, "LiveUpdate", args)) {
// We can't unregister the channel while we're iterating over the
// liveupdate_channels array, so we remember its ID to unregister it at
// the end.
@@ -190,6 +190,6 @@ void liveupdate_send_tick(buf_T *buf)
args.items[1] = INTEGER_OBJ(buf->b_changedtick);
// don't try and clean up dead channels here
- channel_send_event(channelid, "LiveUpdateTick", args);
+ rpc_send_event(channelid, "LiveUpdateTick", args);
}
}