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-08 09:12:45 -08:00
committed by GitHub
co-authored by Mikayla Maki
parent 1ba42f69ee
commit 8f7d7863d6
+1 -1
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