mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-05 04:06:08 -05:00
csi: multi-cursor: allocate grid->num_rows rows
This way, we can safely index with any correctly wrapped row number
This commit is contained in:
parent
8bfbbc89fd
commit
7dbccefeea
1 changed files with 1 additions and 1 deletions
2
csi.c
2
csi.c
|
|
@ -2324,7 +2324,7 @@ csi_dispatch(struct terminal *term, uint8_t final)
|
|||
} else {
|
||||
if (term->multi_cursor.shapes == NULL) {
|
||||
term->multi_cursor.shapes = xcalloc(
|
||||
term->cols * term->rows,
|
||||
term->grid->num_cols * term->grid->num_rows,
|
||||
sizeof(enum multi_cursor_shape));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue