aboutsummaryrefslogtreecommitdiff
path: root/sixel.c
diff options
context:
space:
mode:
Diffstat (limited to 'sixel.c')
-rw-r--r--sixel.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/sixel.c b/sixel.c
index 96ba9214..be4981cf 100644
--- a/sixel.c
+++ b/sixel.c
@@ -610,6 +610,9 @@ sixel_overwrite_by_row(struct terminal *term, int _row, int col, int width)
void
sixel_overwrite_at_cursor(struct terminal *term, int width)
{
+ if (likely(tll_length(term->grid->sixel_images) == 0))
+ return;
+
sixel_overwrite_by_row(
term, term->grid->cursor.point.row, term->grid->cursor.point.col, width);
}