aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/api/vim.c
diff options
context:
space:
mode:
authorbfredl <bjorn.linse@gmail.com>2024-02-18 12:51:27 +0100
committerbfredl <bjorn.linse@gmail.com>2024-02-18 18:09:56 +0100
commitbbf6d4a4bc44c8e61f807d23cc4ff2c2683e1ef4 (patch)
tree902bafe780724ed393af753bbf4c5c346fbb84a9 /src/nvim/api/vim.c
parent93c911e52feadff72003f7e78257c00c3bbf1570 (diff)
downloadrneovim-bbf6d4a4bc44c8e61f807d23cc4ff2c2683e1ef4.tar.gz
rneovim-bbf6d4a4bc44c8e61f807d23cc4ff2c2683e1ef4.tar.bz2
rneovim-bbf6d4a4bc44c8e61f807d23cc4ff2c2683e1ef4.zip
refactor(api): use arena for metadata; msgpack_rpc_to_object delenda est
Note: kSDItemHeader is something is _written_ by nvim in the shada file to identify it for debugging purposes outside of nvim. But this data wasn't ever used by neovim after reading the file back, So I removed the parsing of it for now.
Diffstat (limited to 'src/nvim/api/vim.c')
-rw-r--r--src/nvim/api/vim.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nvim/api/vim.c b/src/nvim/api/vim.c
index 7a19ccf295..d161dca050 100644
--- a/src/nvim/api/vim.c
+++ b/src/nvim/api/vim.c
@@ -2022,10 +2022,10 @@ void nvim__invalidate_glyph_cache(void)
must_redraw = UPD_CLEAR;
}
-Object nvim__unpack(String str, Error *err)
+Object nvim__unpack(String str, Arena *arena, Error *err)
FUNC_API_FAST
{
- return unpack(str.data, str.size, err);
+ return unpack(str.data, str.size, arena, err);
}
/// Deletes an uppercase/file named mark. See |mark-motions|.