diff options
author | Björn Linse <bjorn.linse@gmail.com> | 2019-08-18 13:52:59 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-08-18 13:52:59 +0200 |
commit | 9bbac874f9e56c56e8f891ef691df293d11f11c6 (patch) | |
tree | bd3191e119459b2622f860e7345623a95c350a1d /src/nvim/highlight.c | |
parent | d351f1c871ee9901db389e164789ea33d3e1871f (diff) | |
parent | 628f8f3dfdbc734096b04c3040c1f4d2cea873c4 (diff) | |
download | rneovim-9bbac874f9e56c56e8f891ef691df293d11f11c6.tar.gz rneovim-9bbac874f9e56c56e8f891ef691df293d11f11c6.tar.bz2 rneovim-9bbac874f9e56c56e8f891ef691df293d11f11c6.zip |
Merge pull request #10798 from bfredl/multifix
multigrid: fixes
Diffstat (limited to 'src/nvim/highlight.c')
-rw-r--r-- | src/nvim/highlight.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/nvim/highlight.c b/src/nvim/highlight.c index f11880cb2b..3a61409dfe 100644 --- a/src/nvim/highlight.c +++ b/src/nvim/highlight.c @@ -233,6 +233,7 @@ int hl_get_underline(void) .rgb_fg_color = -1, .rgb_bg_color = -1, .rgb_sp_color = -1, + .hl_blend = -1, }, .kind = kHlUI, .id1 = 0, @@ -427,6 +428,8 @@ int hl_blend_attrs(int back_attr, int front_attr, bool *through) cattrs.rgb_bg_color = rgb_blend(ratio, battrs.rgb_bg_color, fattrs.rgb_bg_color); + cattrs.hl_blend = -1; // blend property was consumed + HlKind kind = *through ? kHlBlendThrough : kHlBlend; id = get_attr_entry((HlEntry){ .attr = cattrs, .kind = kind, .id1 = back_attr, .id2 = front_attr }); @@ -614,6 +617,10 @@ Dictionary hlattrs2dict(HlAttrs ae, bool use_rgb) } } + if (ae.hl_blend > -1) { + PUT(hl, "blend", INTEGER_OBJ(ae.hl_blend)); + } + return hl; } |