diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2021-12-26 14:59:38 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2024-03-07 15:24:33 +0000 |
| commit | 189cfd717fd4670a97995ad9b8e08a2352c09099 (patch) | |
| tree | 64191e047f3fd2b719555ed0aaafe0b4ed9d6cba /csi.c | |
| parent | csi: 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.c | 11 |
1 files changed, 2 insertions, 9 deletions
@@ -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; } |
