mirror of
https://github.com/tmux/tmux.git
synced 2024-12-24 18:38:48 +00:00
Capture up to used size not available size for each line.
This commit is contained in:
parent
207b1bc385
commit
ded695504f
2
grid.c
2
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)
|
||||
|
Loading…
Reference in New Issue
Block a user