diff options
| -rw-r--r-- | CHANGELOG.md | 2 | ||||
| -rw-r--r-- | csi.c | 3 |
2 files changed, 5 insertions, 0 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md index 7ac1f035..d11caa1b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -55,6 +55,8 @@ * Glyphs overflowing into surrounding cells (https://codeberg.org/dnkl/foot/issues/21). * Sixel images being erased when printing text next to them. +* Crash when last rendered cursor cell had scrolled off screen and + `\E[J3` was executed. ### Security @@ -506,6 +506,9 @@ csi_dispatch(struct terminal *term, uint8_t final) continue; } + if (term->render.last_cursor.row == term->grid->rows[i]) + term->render.last_cursor.row = NULL; + grid_row_free(term->grid->rows[i]); term->grid->rows[i] = NULL; } |
