mirror of
https://github.com/tmux/tmux.git
synced 2025-09-01 20:57:00 +00:00
Add accessors for grid linedata member, for some future work. From Dan
Aloni.
This commit is contained in:
@ -64,7 +64,7 @@ grid_view_clear_history(struct grid *gd, u_int bg)
|
||||
/* Find the last used line. */
|
||||
last = 0;
|
||||
for (yy = 0; yy < gd->sy; yy++) {
|
||||
gl = &gd->linedata[grid_view_y(gd, yy)];
|
||||
gl = grid_get_line(gd, grid_view_y(gd, yy));
|
||||
if (gl->cellused != 0)
|
||||
last = yy + 1;
|
||||
}
|
||||
|
Reference in New Issue
Block a user