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:
Joe Wilm 2016-07-16 07:52:16 -07:00
parent 80f6f542ab
commit 5413f471c9
1 changed files with 4 additions and 1 deletions

View File

@ -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;
}