From aac24938f5751e04e8359fd28321f73a46fa5221 Mon Sep 17 00:00:00 2001 From: Mikayla Maki Date: Wed, 12 Oct 2022 09:34:17 -0700 Subject: [PATCH] Fix a bug in how I parse alacritty's styles --- crates/terminal/src/terminal_element.rs | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/crates/terminal/src/terminal_element.rs b/crates/terminal/src/terminal_element.rs index edf445a1d3..df745dae46 100644 --- a/crates/terminal/src/terminal_element.rs +++ b/crates/terminal/src/terminal_element.rs @@ -330,13 +330,10 @@ impl TerminalElement { } let mut properties = Properties::new(); - if indexed - .flags - .intersects(Flags::BOLD | Flags::BOLD_ITALIC | Flags::DIM_BOLD) - { + if indexed.flags.intersects(Flags::BOLD | Flags::DIM_BOLD) { properties = *properties.weight(Weight::BOLD); } - if indexed.flags.intersects(Flags::ITALIC | Flags::BOLD_ITALIC) { + if indexed.flags.intersects(Flags::ITALIC) { properties = *properties.style(Italic); }