Fix text in terminal showing as bold when dimmed (#7491)
Fixes text in the terminal displaying as bold when it's actually just dim. I think it was just a simple oversight because the original code `|`'s together the BOLD and DIM_BOLD flags, which is the same as DIM_BOLD, which is wrong because it should only be BOLD :p Release Notes: - Fixed #4464 Co-authored-by: Mikayla Maki <mikayla@zed.dev>
This commit is contained in:
parent
1ba42f69ee
commit
8f7d7863d6
1 changed files with 1 additions and 1 deletions
|
@ -347,7 +347,7 @@ impl TerminalElement {
|
|||
thickness: Pixels::from(1.0),
|
||||
});
|
||||
|
||||
let weight = if flags.intersects(Flags::BOLD | Flags::DIM_BOLD) {
|
||||
let weight = if flags.intersects(Flags::BOLD) {
|
||||
FontWeight::BOLD
|
||||
} else {
|
||||
FontWeight::NORMAL
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue