From f7db9554f532e12d3cb68b6877d1323e9a3fd6ca Mon Sep 17 00:00:00 2001 From: DevHegemony Date: Wed, 19 Feb 2025 22:20:56 -0500 Subject: [PATCH] shift check bit when comparing to pattern --- wezterm-gui/src/customglyph.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wezterm-gui/src/customglyph.rs b/wezterm-gui/src/customglyph.rs index b3121cb97..f7fa88bac 100644 --- a/wezterm-gui/src/customglyph.rs +++ b/wezterm-gui/src/customglyph.rs @@ -5072,7 +5072,7 @@ impl GlyphCache { for row in 0..3 { for col in 0..2 { let bit = 2 * row + col; - if pattern & bit != 0 { + if pattern & (1u8 << bit) != 0 { fill_rect( &mut buffer, col as f32 * x_half..(col + 1) as f32 * x_half,