From ded695504faad8f5d6430731f0bcb9beb0e1430a Mon Sep 17 00:00:00 2001 From: nicm Date: Wed, 30 Mar 2022 07:05:26 +0000 Subject: Capture up to used size not available size for each line. --- grid.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/grid.c b/grid.c index 91dc8f42..1109ac58 100644 --- a/grid.c +++ b/grid.c @@ -1003,7 +1003,7 @@ grid_string_cells(struct grid *gd, u_int px, u_int py, u_int nx, gl = grid_peek_line(gd, py); for (xx = px; xx < px + nx; xx++) { - if (gl == NULL || xx >= gl->cellsize) + if (gl == NULL || xx >= gl->cellused) break; grid_get_cell(gd, xx, py, &gc); if (gc.flags & GRID_FLAG_PADDING) -- cgit v1.2.3