mirror of
https://github.com/alacritty/alacritty.git
synced 2024-11-11 13:51:01 -05:00
Fix bug rendering inverted cells
Cells with no content that had the cell::INVERSE flag were not being rendered. This was noticeable in `man` where the bar at the bottom would have gaps in it.
This commit is contained in:
parent
80f6f542ab
commit
5413f471c9
1 changed files with 4 additions and 1 deletions
|
@ -580,7 +580,10 @@ impl<'a> RenderApi<'a> {
|
|||
for (i, line) in grid.lines().enumerate() {
|
||||
for (j, cell) in line.cells().enumerate() {
|
||||
// Skip empty cells
|
||||
if cell.c == ' ' && cell.bg == term::DEFAULT_BG {
|
||||
if cell.c == ' ' &&
|
||||
cell.bg == term::DEFAULT_BG &&
|
||||
!cell.flags.contains(cell::INVERSE)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue