aboutsummaryrefslogtreecommitdiff
path: root/csi.c
diff options
context:
space:
mode:
Diffstat (limited to 'csi.c')
-rw-r--r--csi.c11
1 files changed, 2 insertions, 9 deletions
diff --git a/csi.c b/csi.c
index 43a358a8..ac03825e 100644
--- a/csi.c
+++ b/csi.c
@@ -1941,15 +1941,8 @@ csi_dispatch(struct terminal *term, uint8_t final)
sixel_overwrite_by_rectangle(
term, top, left, bottom - top + 1, right - left + 1);
- for (int r = top; r <= bottom; r++) {
- struct row *row = grid_row(term->grid, r);
-
- if (unlikely(row->extra != NULL))
- grid_row_uri_range_erase(row, left, right);
-
- for (int col = left; col <= right; col++)
- term_put_char(term, r, col, (wchar_t)c);
- }
+ for (int r = top; r <= bottom; r++)
+ term_fill(term, r, left, c, right - left + 1);
}
break;
}