From 4006fc86e4af90bb302e0da98dbbcc8152950f12 Mon Sep 17 00:00:00 2001 From: Daniel Eklöf Date: Sun, 28 Jun 2020 11:01:19 +0200 Subject: sixel: overwrite: pass 'width' to sixel_overwrite_at_cursor() This is necessary to handle multi-column characters correctly. --- sixel.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sixel.c') diff --git a/sixel.c b/sixel.c index beab0896..8ecc025a 100644 --- a/sixel.c +++ b/sixel.c @@ -440,10 +440,10 @@ sixel_overwrite_by_row(struct terminal *term, int row, int col, int width) } void -sixel_overwrite_at_cursor(struct terminal *term) +sixel_overwrite_at_cursor(struct terminal *term, int width) { sixel_overwrite_by_row( - term, term->grid->cursor.point.row, term->grid->cursor.point.col, 1); + term, term->grid->cursor.point.row, term->grid->cursor.point.col, width); } void -- cgit v1.3