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/highlight.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/highlight.c')
-rw-r--r-- | src/nvim/highlight.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/nvim/highlight.c b/src/nvim/highlight.c index ee79958034..229da03cb4 100644 --- a/src/nvim/highlight.c +++ b/src/nvim/highlight.c @@ -962,7 +962,8 @@ int object_to_color(Object val, char *key, bool rgb, Error *err) } int color; if (rgb) { - color = name_to_color(str.data); + int dummy; + color = name_to_color(str.data, &dummy); } else { color = name_to_ctermcolor(str.data); } |