mirror of
https://github.com/neovim/neovim.git
synced 2025-10-15 22:36:09 +00:00
fix(compositor): don't blend uninitialized background cells #34364
Problem: A 'winblend' window floating over uninitialized cells loses its highlighting. Solution: Return the front attribute for uninitialized background cells.
This commit is contained in:
@@ -699,8 +699,9 @@ static HlAttrs get_colors_force(int attr)
|
||||
/// @return the resulting attributes.
|
||||
int hl_blend_attrs(int back_attr, int front_attr, bool *through)
|
||||
{
|
||||
// Cannot blend uninitialized cells, use front_attr for uninitialized background cells.
|
||||
if (front_attr < 0 || back_attr < 0) {
|
||||
return -1;
|
||||
return front_attr;
|
||||
}
|
||||
|
||||
HlAttrs fattrs = get_colors_force(front_attr);
|
||||
|
Reference in New Issue
Block a user