1
0
Fork 0
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:
Joe Wilm 2016-07-16 07:52:16 -07:00
parent 80f6f542ab
commit 5413f471c9

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