neovim

Neovim text editor
git clone https://git.dasho.dev/neovim.git
Log | Files | Refs | README

commit 1201145b6893703fb351f51d9f2c742bd6946403
parent 1dbf8675c71dc500ae7502085161cd56e311ccf6
Author: Charlie Groves <charlie.groves@gmail.com>
Date:   Fri, 11 Mar 2022 13:05:40 -0500

fix(remote): use STATIC_CSTR_AS_STRING

Diffstat:
Msrc/nvim/main.c | 3+--
1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/src/nvim/main.c b/src/nvim/main.c @@ -835,9 +835,8 @@ static void handle_remote_client(mparm_T *params, int remote_args, ADD(a, CSTR_TO_OBJ(server_addr)); ADD(a, CSTR_TO_OBJ(connect_error)); ADD(a, ARRAY_OBJ(args)); - String s = cstr_to_string("return vim._cs_remote(...)"); + String s = STATIC_CSTR_AS_STRING("return vim._cs_remote(...)"); Object o = nlua_exec(s, a, &err); - api_free_string(s); api_free_array(a); if (ERROR_SET(&err)) { mch_errmsg(err.msg);