mirror of
https://github.com/wez/wezterm.git
synced 2024-12-23 13:21:38 +03:00
termwiz: fixup sixel width calculation
@yoichi reports that: ```bash printf "\x1bPqh" ``` would panic wezterm; the issue was that the maximum x value was only being updated for newlines and that sequence didn't include it. refs: #217
This commit is contained in:
parent
c3c9ed881c
commit
04218bb877
@ -235,11 +235,13 @@ impl Sixel {
|
||||
match d {
|
||||
SixelData::Data(_) => {
|
||||
max_y = max_y.max(rows * 6);
|
||||
x += 1
|
||||
x += 1;
|
||||
max_x = max_x.max(x);
|
||||
}
|
||||
SixelData::Repeat { repeat_count, .. } => {
|
||||
max_y = max_y.max(rows * 6);
|
||||
x += repeat_count
|
||||
x += repeat_count;
|
||||
max_x = max_x.max(x);
|
||||
}
|
||||
SixelData::SelectColorMapEntry(_)
|
||||
| SixelData::DefineColorMapRGB { .. }
|
||||
|
Loading…
Reference in New Issue
Block a user