Skip to content

Commit c370cb4

Browse files
committed
Avoid moving too much upwards
1 parent 34d4743 commit c370cb4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/onefetch/image_backends/sixel.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ impl super::ImageBackend for SixelBackend {
152152
}
153153
image_data.extend(b"\x1B\\");
154154

155-
image_data.extend(format!("\x1B[{}A", image_rows as u32 + 2).as_bytes()); // move cursor to top-left corner
155+
image_data.extend(format!("\x1B[{}A", image_rows as u32).as_bytes()); // move cursor to top-left corner
156156
image_data.extend(format!("\x1B[{}C", image_columns as u32 + 1).as_bytes()); // move cursor to top-right corner of image
157157
let mut i = 0;
158158
for line in &lines {

0 commit comments

Comments
 (0)