Skip to content

Commit

Permalink
Avoid moving too much upwards
Browse files Browse the repository at this point in the history
  • Loading branch information
yoichi committed Oct 17, 2020
1 parent 34d4743 commit c370cb4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/onefetch/image_backends/sixel.rs
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ impl super::ImageBackend for SixelBackend {
}
image_data.extend(b"\x1B\\");

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

0 comments on commit c370cb4

Please sign in to comment.