diff options
Diffstat (limited to 'alacritty_terminal/src/term/cell.rs')
-rw-r--r-- | alacritty_terminal/src/term/cell.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/alacritty_terminal/src/term/cell.rs b/alacritty_terminal/src/term/cell.rs index 3e7d09e5..5253ede1 100644 --- a/alacritty_terminal/src/term/cell.rs +++ b/alacritty_terminal/src/term/cell.rs @@ -9,7 +9,7 @@ use crate::grid::{self, GridCell}; use crate::index::Column; bitflags! { - #[derive(Serialize, Deserialize)] + #[derive(Serialize, Deserialize, Debug, Clone, Copy, PartialEq, Eq, Hash)] pub struct Flags: u16 { const INVERSE = 0b0000_0000_0000_0001; const BOLD = 0b0000_0000_0000_0010; @@ -28,9 +28,9 @@ bitflags! { const UNDERCURL = 0b0001_0000_0000_0000; 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; + const ALL_UNDERLINES = Self::UNDERLINE.bits() | Self::DOUBLE_UNDERLINE.bits() + | Self::UNDERCURL.bits() | Self::DOTTED_UNDERLINE.bits() + | Self::DASHED_UNDERLINE.bits(); } } |