Fix a bug in how I parse alacritty's styles

This commit is contained in:
Mikayla Maki 2022-10-12 09:34:17 -07:00
parent 47332f97c7
commit aac24938f5

View file

@ -330,13 +330,10 @@ impl TerminalElement {
} }
let mut properties = Properties::new(); let mut properties = Properties::new();
if indexed if indexed.flags.intersects(Flags::BOLD | Flags::DIM_BOLD) {
.flags
.intersects(Flags::BOLD | Flags::BOLD_ITALIC | Flags::DIM_BOLD)
{
properties = *properties.weight(Weight::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); properties = *properties.style(Italic);
} }