Do not try to reflow if line is NULL.

This commit is contained in:
nicm
2025-10-28 09:01:12 +00:00
parent aa420cd54a
commit 7cbb96528c

2
grid.c
View File

@@ -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;
/*