diff options
author | bfredl <bjorn.linse@gmail.com> | 2023-08-07 14:42:25 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-08-07 14:42:25 +0200 |
commit | 3a21c3afe61e5bb76f4b81c1a961b2558e2c8f0a (patch) | |
tree | 02d894cf470742f02a1d69e05078562abd7f4762 /src/nvim/context.c | |
parent | ef44e597294e4d0d9128ef69b6aa7481a54e17cb (diff) | |
parent | 51c754b62e795c49cfcf9df3ab492bdd53c61482 (diff) | |
download | rneovim-3a21c3afe61e5bb76f4b81c1a961b2558e2c8f0a.tar.gz rneovim-3a21c3afe61e5bb76f4b81c1a961b2558e2c8f0a.tar.bz2 rneovim-3a21c3afe61e5bb76f4b81c1a961b2558e2c8f0a.zip |
Merge pull request #24524 from bfredl/typed_keys
refactor(api): use typed keysets
Diffstat (limited to 'src/nvim/context.c')
-rw-r--r-- | src/nvim/context.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/nvim/context.c b/src/nvim/context.c index f7b3491be7..ca28ed9970 100644 --- a/src/nvim/context.c +++ b/src/nvim/context.c @@ -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); |