Unnamed repository; edit this file 'description' to name the repository.
fix white/bright white base16 color mixup (#14409)
Charles Hall 6 months ago
parent 14030d0 · commit 05a99c2
-rw-r--r--helix-view/src/graphics.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/helix-view/src/graphics.rs b/helix-view/src/graphics.rs
index b41265d2..7625e8b5 100644
--- a/helix-view/src/graphics.rs
+++ b/helix-view/src/graphics.rs
@@ -301,14 +301,14 @@ impl From<Color> for termina::style::ColorSpec {
Color::Magenta => Self::MAGENTA,
Color::Cyan => Self::CYAN,
Color::Gray => Self::BRIGHT_BLACK,
- Color::White => Self::WHITE,
+ Color::White => Self::BRIGHT_WHITE,
Color::LightRed => Self::BRIGHT_RED,
Color::LightGreen => Self::BRIGHT_GREEN,
Color::LightBlue => Self::BRIGHT_BLUE,
Color::LightYellow => Self::BRIGHT_YELLOW,
Color::LightMagenta => Self::BRIGHT_MAGENTA,
Color::LightCyan => Self::BRIGHT_CYAN,
- Color::LightGray => Self::BRIGHT_WHITE,
+ Color::LightGray => Self::WHITE,
Color::Indexed(i) => Self::PaletteIndex(i),
Color::Rgb(r, g, b) => termina::style::RgbColor::new(r, g, b).into(),
}