1
0
Fork 0
mirror of https://github.com/alacritty/alacritty.git synced 2025-04-07 17:43:03 -04:00

Render underline on empty cells

This fixes rendering underlines spanning multiple words.
This commit is contained in:
Tuomas Siipola 2017-02-01 23:17:55 +02:00 committed by Joe Wilm
parent 6cc6086eed
commit 9d44526bf9

View file

@ -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]