aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2024-03-07 15:19:56 +0000
committerDaniel Eklöf <daniel@ekloef.se>2024-03-07 15:19:56 +0000
commita2fa667f45015f616171eccac9d6f55789b281d2 (patch)
treeb588ab7d93c05935c702a9832d32db0084139c92
parentsixel: debug: fix logged width/height values when emitting sixel (diff)
sixel: we no longer need the extra newline
Since we never place the cursor *under* the sixel anymore.
-rw-r--r--sixel.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/sixel.c b/sixel.c
index c1a1b18c..605bc8b7 100644
--- a/sixel.c
+++ b/sixel.c
@@ -1096,10 +1096,9 @@ sixel_unhook(struct terminal *term)
int start_row = do_scroll ? term->grid->cursor.point.row : 0;
const int start_col = do_scroll ? term->grid->cursor.point.col : 0;
- /* Total number of rows needed by image (+ optional newline at the end) */
+ /* Total number of rows needed by image */
const int rows_needed =
- (term->sixel.image.height + term->cell_height - 1) / term->cell_height +
- (term->sixel.cursor_right_of_graphics ? 0 : 1);
+ (term->sixel.image.height + term->cell_height - 1) / term->cell_height;
bool free_image_data = true;