diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2019-12-02 22:38:36 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-12-02 22:38:36 -0800 |
commit | b1e4ec1c2a08981683b2355715a421c0bfb64644 (patch) | |
tree | 4b19d5f14230929c226ea916c1538fb492e511c0 /src/nvim/context.c | |
parent | 22b52dd462e5dc9d5429305215bfb20aa20517c5 (diff) | |
parent | a3b6c2a3dc5576db45fe4e893cfb8482af591c92 (diff) | |
download | rneovim-b1e4ec1c2a08981683b2355715a421c0bfb64644.tar.gz rneovim-b1e4ec1c2a08981683b2355715a421c0bfb64644.tar.bz2 rneovim-b1e4ec1c2a08981683b2355715a421c0bfb64644.zip |
Merge #11500 from justinmk/api-deprecate
API: rename nvim_execute_lua, deprecate nvim_command_output
Diffstat (limited to 'src/nvim/context.c')
-rw-r--r-- | src/nvim/context.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/context.c b/src/nvim/context.c index 2f872ff2bf..1ae0510762 100644 --- a/src/nvim/context.c +++ b/src/nvim/context.c @@ -254,7 +254,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); - String func_body = nvim_command_output(cstr_as_string(cmd), &err); + String func_body = nvim_exec(cstr_as_string(cmd), true, &err); xfree(cmd); if (!ERROR_SET(&err)) { ADD(ctx->funcs, STRING_OBJ(func_body)); |