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
|
@ -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 New Issue