aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/context.c
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2019-12-01 22:43:16 -0800
committerJustin M. Keyes <justinkz@gmail.com>2019-12-02 20:52:06 -0800
commitc34130d13a842ae0c0c1724d05800a954547d327 (patch)
tree1f24de9e40afe266f35ebbb6c2fc09be969989c3 /src/nvim/context.c
parent22b52dd462e5dc9d5429305215bfb20aa20517c5 (diff)
downloadrneovim-c34130d13a842ae0c0c1724d05800a954547d327.tar.gz
rneovim-c34130d13a842ae0c0c1724d05800a954547d327.tar.bz2
rneovim-c34130d13a842ae0c0c1724d05800a954547d327.zip
API: deprecate nvim_command_output
Diffstat (limited to 'src/nvim/context.c')
-rw-r--r--src/nvim/context.c2
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));