diff options
author | Josh Rahm <rahm@google.com> | 2022-09-12 10:57:59 -0600 |
---|---|---|
committer | Josh Rahm <rahm@google.com> | 2022-09-12 10:57:59 -0600 |
commit | 040b05d7d01defe16e4b31a6fd9c863fd2443091 (patch) | |
tree | 5e4a295fe310c73dfc2fe196708c49b4c0b41396 /src/nvim/context.c | |
parent | 52ce04a002a882da19bb2c78d1fd8eb4825d669d (diff) | |
parent | fd70e2bff2440181f63fe124738cf2a025d1e6a5 (diff) | |
download | rneovim-040b05d7d01defe16e4b31a6fd9c863fd2443091.tar.gz rneovim-040b05d7d01defe16e4b31a6fd9c863fd2443091.tar.bz2 rneovim-040b05d7d01defe16e4b31a6fd9c863fd2443091.zip |
Merge remote-tracking branch 'upstream/master' into floattitle
Diffstat (limited to 'src/nvim/context.c')
-rw-r--r-- | src/nvim/context.c | 4 |
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; } } |