mirror of
https://github.com/tmux/tmux.git
synced 2024-12-25 02:48:47 +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);
|
gl = grid_peek_line(gd, py);
|
||||||
for (xx = px; xx < px + nx; xx++) {
|
for (xx = px; xx < px + nx; xx++) {
|
||||||
if (gl == NULL || xx >= gl->cellsize)
|
if (gl == NULL || xx >= gl->cellused)
|
||||||
break;
|
break;
|
||||||
grid_get_cell(gd, xx, py, &gc);
|
grid_get_cell(gd, xx, py, &gc);
|
||||||
if (gc.flags & GRID_FLAG_PADDING)
|
if (gc.flags & GRID_FLAG_PADDING)
|
||||||
|
Loading…
Reference in New Issue
Block a user