diff options
author | bfredl <bjorn.linse@gmail.com> | 2024-02-17 20:31:21 +0100 |
---|---|---|
committer | bfredl <bjorn.linse@gmail.com> | 2024-02-18 10:15:27 +0100 |
commit | f25fcc68a34c2d51b0715fadc62cb50509de338b (patch) | |
tree | 39311fa4d0decc2551d4bcc488544d133df3764f /src/nvim/api/vim.c | |
parent | b12d193b4a68242fb0c7e4f924c8abce3488e1c8 (diff) | |
download | rneovim-f25fcc68a34c2d51b0715fadc62cb50509de338b.tar.gz rneovim-f25fcc68a34c2d51b0715fadc62cb50509de338b.tar.bz2 rneovim-f25fcc68a34c2d51b0715fadc62cb50509de338b.zip |
refactor(api): use an arena for mappings
Diffstat (limited to 'src/nvim/api/vim.c')
-rw-r--r-- | src/nvim/api/vim.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nvim/api/vim.c b/src/nvim/api/vim.c index 1184eb7441..195da4366e 100644 --- a/src/nvim/api/vim.c +++ b/src/nvim/api/vim.c @@ -1456,10 +1456,10 @@ Dictionary nvim_get_mode(Arena *arena) /// @param mode Mode short-name ("n", "i", "v", ...) /// @returns Array of |maparg()|-like dictionaries describing mappings. /// The "buffer" key is always zero. -ArrayOf(Dictionary) nvim_get_keymap(String mode) +ArrayOf(Dictionary) nvim_get_keymap(String mode, Arena *arena) FUNC_API_SINCE(3) { - return keymap_array(mode, NULL); + return keymap_array(mode, NULL, arena); } /// Sets a global |mapping| for the given mode. |