aboutsummaryrefslogtreecommitdiff
path: root/sixel.c
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2023-10-12 14:35:37 +0000
committerDaniel Eklöf <daniel@ekloef.se>2023-10-12 14:35:37 +0000
commitee7e6e7234d559f3e4713f5eeabd6d50dbe91fa6 (patch)
treeba21afc3b880e2a1c22c789f74616c5a2d77edbe /sixel.c
parentmeson: bump version to 1.16.0 (diff)
parentrender: fix surface damage when rendering sixels. (diff)
Merge branch 'master' into releases/1.16
Diffstat (limited to 'sixel.c')
-rw-r--r--sixel.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sixel.c b/sixel.c
index bd2ebe1d..8a0b130f 100644
--- a/sixel.c
+++ b/sixel.c
@@ -180,7 +180,7 @@ sixel_erase(struct terminal *term, struct sixel *sixel)
row->dirty = true;
- for (int c = sixel->pos.col; c < min(sixel->cols, term->cols); c++)
+ for (int c = sixel->pos.col; c < min(sixel->pos.col + sixel->cols, term->cols); c++)
row->cells[c].attrs.clean = 0;
}