aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/tui
diff options
context:
space:
mode:
authorbfredl <bjorn.linse@gmail.com>2022-08-24 15:22:30 +0200
committerGitHub <noreply@github.com>2022-08-24 15:22:30 +0200
commitf1ea126a6eb1d9cae53eae3fedbfa51f90ee97b1 (patch)
treeb0c3c27869110cc51cda2f18d64ef9608c956481 /src/nvim/tui
parentf91b1885ddeaf971e17afe49b80f1b1412ecc8a2 (diff)
parent7784dc9e0d90284b0d9c9cf0833c27d4de22b7f4 (diff)
downloadrneovim-f1ea126a6eb1d9cae53eae3fedbfa51f90ee97b1.tar.gz
rneovim-f1ea126a6eb1d9cae53eae3fedbfa51f90ee97b1.tar.bz2
rneovim-f1ea126a6eb1d9cae53eae3fedbfa51f90ee97b1.zip
Merge pull request #19906 from bfredl/bigstage
perf(api): allow to use an arena for return values
Diffstat (limited to 'src/nvim/tui')
-rw-r--r--src/nvim/tui/input.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nvim/tui/input.c b/src/nvim/tui/input.c
index 61a59bcf06..03cfb830e6 100644
--- a/src/nvim/tui/input.c
+++ b/src/nvim/tui/input.c
@@ -233,12 +233,12 @@ static void tinput_wait_enqueue(void **argv)
if (ui_client_channel_id) {
Array args = ARRAY_DICT_INIT;
Error err = ERROR_INIT;
- ADD(args, STRING_OBJ(copy_string(keys)));
+ ADD(args, STRING_OBJ(copy_string(keys, NULL)));
// TODO(bfredl): could be non-blocking now with paste?
ArenaMem res_mem = NULL;
Object result = rpc_send_call(ui_client_channel_id, "nvim_input", args, &res_mem, &err);
consumed = result.type == kObjectTypeInteger ? (size_t)result.data.integer : 0;
- arena_mem_free(res_mem, NULL);
+ arena_mem_free(res_mem);
} else {
consumed = input_enqueue(keys);
}