mirror of
https://github.com/neovim/neovim.git
synced 2025-10-15 06:16:08 +00:00
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.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user