diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2025-08-31 07:22:30 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2025-08-31 07:22:30 +0000 |
| commit | 7dbccefeeaa7ad86a4461e831468b709b0156b7c (patch) | |
| tree | 4a6d514319d0b2235cb0c99ddd05cc8e46060fff | |
| parent | multi-cursor: bug: use grid_row() when accessing rows (diff) | |
csi: multi-cursor: allocate grid->num_rows rows
This way, we can safely index with any correctly wrapped row number
| -rw-r--r-- | csi.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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)); } } |
