mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-25 01:40:19 -05:00
multi-cursor: bug: use grid_row() when accessing rows
This commit is contained in:
parent
1055d32e9f
commit
8bfbbc89fd
2 changed files with 6 additions and 2 deletions
4
csi.c
4
csi.c
|
|
@ -2337,7 +2337,9 @@ csi_dispatch(struct terminal *term, uint8_t final)
|
||||||
for (int j = 0; j < rect_count; j++) {
|
for (int j = 0; j < rect_count; j++) {
|
||||||
const pixman_box32_t *box = &boxes[j];
|
const pixman_box32_t *box = &boxes[j];
|
||||||
for (int r = box->y1; r < box->y2; r++) {
|
for (int r = box->y1; r < box->y2; r++) {
|
||||||
struct row *row = term->grid->rows[r];
|
struct row *row = grid_row(term->grid, r);
|
||||||
|
xassert(row != NULL);
|
||||||
|
|
||||||
row->dirty = true;
|
row->dirty = true;
|
||||||
|
|
||||||
for (int c = box->x1; c < box->x2; c++) {
|
for (int c = box->x1; c < box->x2; c++) {
|
||||||
|
|
|
||||||
|
|
@ -534,7 +534,9 @@ cursor_refresh(struct terminal *term)
|
||||||
const pixman_box32_t *box = &boxes[i];
|
const pixman_box32_t *box = &boxes[i];
|
||||||
|
|
||||||
for (int r = box->y1; r < box->y2; r++) {
|
for (int r = box->y1; r < box->y2; r++) {
|
||||||
struct row *row = term->grid->rows[r];
|
struct row *row = grid_row(term->grid, r);
|
||||||
|
xassert(row != NULL);
|
||||||
|
|
||||||
row->dirty = true;
|
row->dirty = true;
|
||||||
|
|
||||||
for (int c = box->x1; c < box->x2; c++)
|
for (int c = box->x1; c < box->x2; c++)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue