Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'helix-view/src/theme.rs')
-rw-r--r--helix-view/src/theme.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/helix-view/src/theme.rs b/helix-view/src/theme.rs
index 61d490ff..77fa7833 100644
--- a/helix-view/src/theme.rs
+++ b/helix-view/src/theme.rs
@@ -300,7 +300,7 @@ impl Theme {
/// Interpret a Highlight with the RGB foreground
fn decode_rgb_highlight(highlight: Highlight) -> Option<(u8, u8, u8)> {
(highlight.get() > Self::RGB_START).then(|| {
- let [b, g, r, ..] = (highlight.get() + 1).to_ne_bytes();
+ let [b, g, r, ..] = (highlight.get() + 1).to_le_bytes();
(r, g, b)
})
}
@@ -309,7 +309,7 @@ impl Theme {
pub fn rgb_highlight(r: u8, g: u8, b: u8) -> Highlight {
// -1 because highlight is "non-max": u32::MAX is reserved for the null pointer
// optimization.
- Highlight::new(u32::from_ne_bytes([b, g, r, u8::MAX]) - 1)
+ Highlight::new(u32::from_le_bytes([b, g, r, u8::MAX]) - 1)
}
#[inline]