sixel: skip setting pixel if x-coord is out of range

speculative fix for https://github.com/wez/wezterm/issues/2500
which doesn't repro for me(!)
This commit is contained in:
Wez Furlong committed 2022-09-07 16:47:42 -07:00
1 parent c0fff4e843
commit 2bbad26dd1
1 file changed
+3
+3
View File
@@ -39,6 +39,9 @@ impl TerminalState {
let mut foreground_color = RgbColor::new_8bpc(0, 0xff, 0);
let mut emit_sixel = |d: &u8, foreground_color: &RgbColor, x: u32, y: u32| {
if x >= width {
return;
}
let (red, green, blue) = foreground_color.to_tuple_rgb8();
for bitno in 0..6 {
if y + bitno >= height {