diff options
author | Tuomas Siipola <siiptuo@kapsi.fi> | 2017-02-01 23:17:55 +0200 |
---|---|---|
committer | Joe Wilm <joe@jwilm.com> | 2017-02-06 11:45:09 -0800 |
commit | 9d44526bf9ac8f20b090cc8a9279e527ec07d189 (patch) | |
tree | fecc3d8841ab1ce02028000f908af25257b8c6a9 | |
parent | 6cc6086eed692c8c0db2b93c716296a55438a394 (diff) | |
download | alacritty-9d44526bf9ac8f20b090cc8a9279e527ec07d189.tar.gz alacritty-9d44526bf9ac8f20b090cc8a9279e527ec07d189.zip |
Render underline on empty cells
This fixes rendering underlines spanning multiple words.
-rw-r--r-- | src/term/cell.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/term/cell.rs b/src/term/cell.rs index 2cbdf14b..e6b8fc9a 100644 --- a/src/term/cell.rs +++ b/src/term/cell.rs @@ -88,7 +88,7 @@ impl Cell { pub fn is_empty(&self) -> bool { self.c == ' ' && self.bg == Color::Named(NamedColor::Background) && - !self.flags.contains(INVERSE) + !self.flags.intersects(INVERSE | UNDERLINE) } #[inline] |