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:
Robert Clover 2024-02-09 04:12:45 +11:00 committed by GitHub
parent 1ba42f69ee
commit 8f7d7863d6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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