diff options
Diffstat (limited to 'alacritty_terminal/src/term/cell.rs')
-rw-r--r-- | alacritty_terminal/src/term/cell.rs | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/alacritty_terminal/src/term/cell.rs b/alacritty_terminal/src/term/cell.rs index 49d25eb3..2af1fbac 100644 --- a/alacritty_terminal/src/term/cell.rs +++ b/alacritty_terminal/src/term/cell.rs @@ -25,7 +25,11 @@ bitflags! { const LEADING_WIDE_CHAR_SPACER = 0b0000_0100_0000_0000; const DOUBLE_UNDERLINE = 0b0000_1000_0000_0000; const UNDERCURL = 0b0001_0000_0000_0000; - const ALL_UNDERLINES = Self::UNDERLINE.bits | Self::DOUBLE_UNDERLINE.bits | Self::UNDERCURL.bits; + const DOTTED_UNDERLINE = 0b0010_0000_0000_0000; + const DASHED_UNDERLINE = 0b0100_0000_0000_0000; + const ALL_UNDERLINES = Self::UNDERLINE.bits | Self::DOUBLE_UNDERLINE.bits + | Self::UNDERCURL.bits | Self::DOTTED_UNDERLINE.bits + | Self::DASHED_UNDERLINE.bits; } } @@ -119,9 +123,7 @@ impl GridCell for Cell { && self.fg == Color::Named(NamedColor::Foreground) && !self.flags.intersects( Flags::INVERSE - | Flags::UNDERLINE - | Flags::DOUBLE_UNDERLINE - | Flags::UNDERCURL + | Flags::ALL_UNDERLINES | Flags::STRIKEOUT | Flags::WRAPLINE | Flags::WIDE_CHAR_SPACER |