Fix a bug in how I parse alacritty's styles
This commit is contained in:
parent
47332f97c7
commit
aac24938f5
1 changed files with 2 additions and 5 deletions
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue