diff options
author | Joe Wilm <joe@jwilm.com> | 2016-07-16 07:52:16 -0700 |
---|---|---|
committer | Joe Wilm <joe@jwilm.com> | 2016-07-16 07:52:16 -0700 |
commit | 5413f471c96d6886d4811a0b1c334d21252545a1 (patch) | |
tree | b11f98359af35b260d5409d07154a735489687e4 /src | |
parent | 80f6f542abf8701de45010f5f29f4bfae74fe8cd (diff) | |
download | alacritty-5413f471c96d6886d4811a0b1c334d21252545a1.tar.gz alacritty-5413f471c96d6886d4811a0b1c334d21252545a1.zip |
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.
Diffstat (limited to 'src')
-rw-r--r-- | src/renderer/mod.rs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/renderer/mod.rs b/src/renderer/mod.rs index f0a5fae4..fec6cf85 100644 --- a/src/renderer/mod.rs +++ b/src/renderer/mod.rs @@ -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; } |