Capture up to used size not available size for each line.

pull/3160/head
nicm 2022-03-30 07:05:26 +00:00 committed by Nicholas Marriott
parent 880abd0ec2
commit 2df7bc14fa
1 changed files with 1 additions and 1 deletions

2
grid.c
View File

@ -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)