From 23ad10c849bf6a89cfaf0c8f44a3297a3293eaff Mon Sep 17 00:00:00 2001 From: nicm Date: Mon, 23 Feb 2026 08:29:30 +0000 Subject: [PATCH] Set cell to default when off screen to avoid crash when logging it. --- tty-draw.c | 1 + 1 file changed, 1 insertion(+) diff --git a/tty-draw.c b/tty-draw.c index eaf56d2b..fa9cbcd5 100644 --- a/tty-draw.c +++ b/tty-draw.c @@ -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);