mirror of
https://github.com/zed-industries/zed.git
synced 2025-01-12 05:15:00 +00:00
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:
commit
b3567a7240
1 changed files with 2 additions and 5 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue