mirror of
https://github.com/neovim/neovim.git
synced 2025-10-08 02:46:31 +00:00
perf(highlight): don't allocate duplicates for color names
This commit is contained in:
@@ -1293,7 +1293,8 @@ void nvim_unsubscribe(uint64_t channel_id, String event)
|
||||
Integer nvim_get_color_by_name(String name)
|
||||
FUNC_API_SINCE(1)
|
||||
{
|
||||
return name_to_color(name.data);
|
||||
int dummy;
|
||||
return name_to_color(name.data, &dummy);
|
||||
}
|
||||
|
||||
/// Returns a map of color names and RGB values.
|
||||
|
Reference in New Issue
Block a user