aboutsummaryrefslogtreecommitdiff
path: root/csi.c
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2021-12-26 14:59:38 +0000
committerDaniel Eklöf <daniel@ekloef.se>2024-03-07 15:24:33 +0000
commit189cfd717fd4670a97995ad9b8e08a2352c09099 (patch)
tree64191e047f3fd2b719555ed0aaafe0b4ed9d6cba /csi.c
parentcsi: rectangular: add helper function params_to_rectangular_area() (diff)
term: replace term_put_char() with term_fill()
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;
}