diff options
author | bfredl <bjorn.linse@gmail.com> | 2022-06-22 10:49:36 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-22 10:49:36 +0200 |
commit | dd591adf8a1d145b2fdf9115509bcc80c9ee7943 (patch) | |
tree | 081bb7e699cf9e85c7dd04727372f2c217ced9ca /src/nvim/api/vim.c | |
parent | f17d88c47a6a647f2230a61e7cd952926abc4473 (diff) | |
parent | 8cd94e3bc06f43e73c5567b7db5cb37c164e28b8 (diff) | |
download | rneovim-dd591adf8a1d145b2fdf9115509bcc80c9ee7943.tar.gz rneovim-dd591adf8a1d145b2fdf9115509bcc80c9ee7943.tar.bz2 rneovim-dd591adf8a1d145b2fdf9115509bcc80c9ee7943.zip |
Merge pull request #19039 from bfredl/multicolor
perf: get rid of unnecessary allocations in highlight groups
Diffstat (limited to 'src/nvim/api/vim.c')
-rw-r--r-- | src/nvim/api/vim.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/nvim/api/vim.c b/src/nvim/api/vim.c index 3a24f2b405..b7df1398f5 100644 --- a/src/nvim/api/vim.c +++ b/src/nvim/api/vim.c @@ -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. |