aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/context.c
diff options
context:
space:
mode:
authorbfredl <bjorn.linse@gmail.com>2022-08-24 15:22:30 +0200
committerGitHub <noreply@github.com>2022-08-24 15:22:30 +0200
commitf1ea126a6eb1d9cae53eae3fedbfa51f90ee97b1 (patch)
treeb0c3c27869110cc51cda2f18d64ef9608c956481 /src/nvim/context.c
parentf91b1885ddeaf971e17afe49b80f1b1412ecc8a2 (diff)
parent7784dc9e0d90284b0d9c9cf0833c27d4de22b7f4 (diff)
downloadrneovim-f1ea126a6eb1d9cae53eae3fedbfa51f90ee97b1.tar.gz
rneovim-f1ea126a6eb1d9cae53eae3fedbfa51f90ee97b1.tar.bz2
rneovim-f1ea126a6eb1d9cae53eae3fedbfa51f90ee97b1.zip
Merge pull request #19906 from bfredl/bigstage
perf(api): allow to use an arena for return values
Diffstat (limited to 'src/nvim/context.c')
-rw-r--r--src/nvim/context.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nvim/context.c b/src/nvim/context.c
index e3ae9355bf..34692cdf64 100644
--- a/src/nvim/context.c
+++ b/src/nvim/context.c
@@ -345,7 +345,7 @@ Dictionary ctx_to_dict(Context *ctx)
PUT(rv, "jumps", ARRAY_OBJ(sbuf_to_array(ctx->jumps)));
PUT(rv, "bufs", ARRAY_OBJ(sbuf_to_array(ctx->bufs)));
PUT(rv, "gvars", ARRAY_OBJ(sbuf_to_array(ctx->gvars)));
- PUT(rv, "funcs", ARRAY_OBJ(copy_array(ctx->funcs)));
+ PUT(rv, "funcs", ARRAY_OBJ(copy_array(ctx->funcs, NULL)));
return rv;
}
@@ -381,7 +381,7 @@ int ctx_from_dict(Dictionary dict, Context *ctx)
ctx->gvars = array_to_sbuf(item.value.data.array);
} else if (strequal(item.key.data, "funcs")) {
types |= kCtxFuncs;
- ctx->funcs = copy_object(item.value).data.array;
+ ctx->funcs = copy_object(item.value, NULL).data.array;
}
}