aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/highlight.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/highlight.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/highlight.c')
-rw-r--r--src/nvim/highlight.c2
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;
}