mirror of
https://github.com/neovim/neovim.git
synced 2025-10-01 07:28:34 +00:00
w_grid_alloc: baseline impl
This commit is contained in:
@@ -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) {
|
||||
|
Reference in New Issue
Block a user