mirror of
https://github.com/neovim/neovim.git
synced 2025-10-06 09:56:31 +00:00
refactor(api): use typed keysets
Initially this is just for geting rid of boilerplate, but eventually the types could get exposed as metadata
This commit is contained in:
@@ -271,8 +271,7 @@ static inline void ctx_save_funcs(Context *ctx, bool scriptonly)
|
||||
size_t cmd_len = sizeof("func! ") + strlen(name);
|
||||
char *cmd = xmalloc(cmd_len);
|
||||
snprintf(cmd, cmd_len, "func! %s", name);
|
||||
Dict(exec_opts) opts = { 0 };
|
||||
opts.output = BOOLEAN_OBJ(true);
|
||||
Dict(exec_opts) opts = { .output = true };
|
||||
String func_body = exec_impl(VIML_INTERNAL_CALL, cstr_as_string(cmd),
|
||||
&opts, &err);
|
||||
xfree(cmd);
|
||||
|
Reference in New Issue
Block a user