diff options
author | bfredl <bjorn.linse@gmail.com> | 2022-08-23 13:52:09 +0200 |
---|---|---|
committer | bfredl <bjorn.linse@gmail.com> | 2022-08-24 14:22:26 +0200 |
commit | 7784dc9e0d90284b0d9c9cf0833c27d4de22b7f4 (patch) | |
tree | 297ed9f2974d08b1c83c829c4fe265fba101b629 /src/nvim/highlight.c | |
parent | bcf5ee328e228d5a536b4de2069a79234f9f3e9e (diff) | |
download | rneovim-7784dc9e0d90284b0d9c9cf0833c27d4de22b7f4.tar.gz rneovim-7784dc9e0d90284b0d9c9cf0833c27d4de22b7f4.tar.bz2 rneovim-7784dc9e0d90284b0d9c9cf0833c27d4de22b7f4.zip |
refactor(api): provide a temporary copy solution for nvim_call_atomic
Make the copy_object() family accept an optional arena. More than
half of the callsites should be refactored to use an arena later
anyway.
Diffstat (limited to 'src/nvim/highlight.c')
-rw-r--r-- | src/nvim/highlight.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/highlight.c b/src/nvim/highlight.c index d6a18fcf8e..c5a84c731d 100644 --- a/src/nvim/highlight.c +++ b/src/nvim/highlight.c @@ -903,7 +903,7 @@ Dictionary hlattrs2dict(Dictionary *hl_alloc, HlAttrs ae, bool use_rgb) *hl_alloc = hl; return hl; } else { - Dictionary allocated = copy_dictionary(hl); + Dictionary allocated = copy_dictionary(hl, NULL); kv_destroy(hl); return allocated; } |