Merge pull request #1736 from zed-industries/fix-terminal-bold

Fix a bug in how I parse alacritty's styles
This commit is contained in:
Mikayla Maki 2022-10-12 09:38:27 -07:00 committed by GitHub
commit b3567a7240
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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);
} }