diff options
author | Björn Linse <bjorn.linse@gmail.com> | 2021-02-22 15:03:46 +0100 |
---|---|---|
committer | Björn Linse <bjorn.linse@gmail.com> | 2021-03-22 15:42:26 +0100 |
commit | 08ca5207cd284c8e5a1f1a47b98356415f4c1cf7 (patch) | |
tree | 0b668e509068b4a758a25265299b472dde64d517 /src/nvim/highlight.c | |
parent | 070e084a64dd08ff28c826843f0d61ca51837841 (diff) | |
download | rneovim-08ca5207cd284c8e5a1f1a47b98356415f4c1cf7.tar.gz rneovim-08ca5207cd284c8e5a1f1a47b98356415f4c1cf7.tar.bz2 rneovim-08ca5207cd284c8e5a1f1a47b98356415f4c1cf7.zip |
w_grid_alloc: baseline impl
Diffstat (limited to 'src/nvim/highlight.c')
-rw-r--r-- | src/nvim/highlight.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/nvim/highlight.c b/src/nvim/highlight.c index b01cdde236..5163752e1f 100644 --- a/src/nvim/highlight.c +++ b/src/nvim/highlight.c @@ -517,6 +517,10 @@ static HlAttrs get_colors_force(int attr) /// @return the resulting attributes. int hl_blend_attrs(int back_attr, int front_attr, bool *through) { + if (front_attr < 0 || back_attr < 0) { + return -1; + } + HlAttrs fattrs = get_colors_force(front_attr); int ratio = fattrs.hl_blend; if (ratio <= 0) { |