aboutsummaryrefslogtreecommitdiff
path: root/sixel.c
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2020-06-28 09:01:19 +0000
committerDaniel Eklöf <daniel@ekloef.se>2020-06-28 09:01:19 +0000
commit4006fc86e4af90bb302e0da98dbbcc8152950f12 (patch)
tree4963b14079485634267c0a2d9db338ce4bd1dbf1 /sixel.c
parentrender: sixels: break out of loop when we're sure there aren't any more visible images (diff)
sixel: overwrite: pass 'width' to sixel_overwrite_at_cursor()
This is necessary to handle multi-column characters correctly.
Diffstat (limited to 'sixel.c')
-rw-r--r--sixel.c4
1 files changed, 2 insertions, 2 deletions
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