From 7cbb96528ce9ec00b54f4e575b91c4336bf1db57 Mon Sep 17 00:00:00 2001 From: nicm Date: Tue, 28 Oct 2025 09:01:12 +0000 Subject: [PATCH] Do not try to reflow if line is NULL. --- grid.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/grid.c b/grid.c index a0a52a0e..63eea68d 100644 --- a/grid.c +++ b/grid.c @@ -1304,7 +1304,7 @@ grid_reflow_join(struct grid *target, struct grid *gd, u_int sx, u_int yy, if (!wrapped || want != from->cellused || width == sx) break; } - if (lines == 0) + if (lines == 0 || from == NULL) return; /*