mirror of
https://github.com/neovim/neovim.git
synced 2025-10-07 10:26:31 +00:00
Merge pull request #19906 from bfredl/bigstage
perf(api): allow to use an arena for return values
This commit is contained in:
@@ -51,7 +51,7 @@ Integer nvim_create_namespace(String name)
|
||||
}
|
||||
id = next_namespace_id++;
|
||||
if (name.size > 0) {
|
||||
String name_alloc = copy_string(name);
|
||||
String name_alloc = copy_string(name, NULL);
|
||||
map_put(String, handle_T)(&namespace_ids, name_alloc, id);
|
||||
}
|
||||
return (Integer)id;
|
||||
|
Reference in New Issue
Block a user