aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/api
diff options
context:
space:
mode:
authorKillTheMule <KillTheMule@users.noreply.github.com>2018-01-26 15:49:35 +0100
committerKillTheMule <KillTheMule@users.noreply.github.com>2018-05-23 22:07:27 +0200
commitbafae1c427cb1eeb52e4caa641ad134c1e062e8e (patch)
tree5fa3bce5bd51eae937c41a06c8de67b87358f457 /src/nvim/api
parent9e97f14de2e693a204db39331d59778f1b4802a6 (diff)
downloadrneovim-bafae1c427cb1eeb52e4caa641ad134c1e062e8e.tar.gz
rneovim-bafae1c427cb1eeb52e4caa641ad134c1e062e8e.tar.bz2
rneovim-bafae1c427cb1eeb52e4caa641ad134c1e062e8e.zip
Add argument to not send a buffers content when updates are enabled
Add a test.
Diffstat (limited to 'src/nvim/api')
-rw-r--r--src/nvim/api/buffer.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/nvim/api/buffer.c b/src/nvim/api/buffer.c
index 159683db9e..e594e4975c 100644
--- a/src/nvim/api/buffer.c
+++ b/src/nvim/api/buffer.c
@@ -87,6 +87,7 @@ String buffer_get_line(Buffer buffer, Integer index, Error *err)
Boolean nvim_buf_live_updates(uint64_t channel_id,
Buffer buffer,
Boolean enabled,
+ Boolean send_buffer,
Error *err)
FUNC_API_SINCE(3) FUNC_API_REMOTE_ONLY
{
@@ -97,7 +98,7 @@ Boolean nvim_buf_live_updates(uint64_t channel_id,
}
if (enabled) {
- return liveupdate_register(buf, channel_id);
+ return liveupdate_register(buf, channel_id, send_buffer);
}
liveupdate_unregister(buf, channel_id);