Set cell to default when off screen to avoid crash when logging it.

This commit is contained in:
nicm
2026-02-23 08:29:30 +00:00
parent 0310404155
commit 23ad10c849

View File

@@ -223,6 +223,7 @@ tty_draw_line(struct tty *tty, struct screen *s, u_int px, u_int py, u_int nx,
*/
empty = 0;
next_state = TTY_DRAW_LINE_DONE;
gcp = &grid_default_cell;
} else {
/* Get the current cell. */
grid_view_get_cell(gd, px + i, py, &gc);