aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/buffer_updates.c
diff options
context:
space:
mode:
authorBjörn Linse <bjorn.linse@gmail.com>2020-02-10 18:09:50 +0100
committerGitHub <noreply@github.com>2020-02-10 18:09:50 +0100
commita723d605490567c9e9cf961aa85b80e8a729db1e (patch)
tree3d6ccec65f486382fc8ef6caf60781a131ea0271 /src/nvim/buffer_updates.c
parent6c5bbf07d988ef55e5e8ba8d70b62c1f0885261b (diff)
parent7d7adf7acc0d4f5219e1fc433d26c6c6c30b46fc (diff)
downloadrneovim-a723d605490567c9e9cf961aa85b80e8a729db1e.tar.gz
rneovim-a723d605490567c9e9cf961aa85b80e8a729db1e.tar.bz2
rneovim-a723d605490567c9e9cf961aa85b80e8a729db1e.zip
Merge pull request #11842 from bfredl/decotest
treesitter: use internal "decorations" buffer
Diffstat (limited to 'src/nvim/buffer_updates.c')
-rw-r--r--src/nvim/buffer_updates.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/nvim/buffer_updates.c b/src/nvim/buffer_updates.c
index 80780a3aa3..e6393bf02c 100644
--- a/src/nvim/buffer_updates.c
+++ b/src/nvim/buffer_updates.c
@@ -296,10 +296,7 @@ void buf_updates_send_splice(buf_T *buf,
BufUpdateCallbacks cb = kv_A(buf->update_callbacks, i);
bool keep = true;
if (cb.on_bytes != LUA_NOREF) {
- Array args = ARRAY_DICT_INIT;
- Object items[8];
- args.size = 8;
- args.items = items;
+ FIXED_TEMP_ARRAY(args, 8);
// the first argument is always the buffer handle
args.items[0] = BUFFER_OBJ(buf->handle);