mirror of
https://github.com/tmux/tmux.git
synced 2025-09-03 22:43:58 +00:00
Add accessors for grid linedata member, for some future work. From Dan
Aloni.
This commit is contained in:
12
grid.c
12
grid.c
@ -145,6 +145,18 @@ grid_extended_cell(struct grid_line *gl, struct grid_cell_entry *gce,
|
||||
return (gcp);
|
||||
}
|
||||
|
||||
struct grid_line *
|
||||
grid_get_line(struct grid *gd, u_int line)
|
||||
{
|
||||
return (&gd->linedata[line]);
|
||||
}
|
||||
|
||||
void
|
||||
grid_adjust_lines(struct grid *gd, u_int lines)
|
||||
{
|
||||
gd->linedata = xreallocarray(gd->linedata, lines, sizeof *gd->linedata);
|
||||
}
|
||||
|
||||
/* Copy default into a cell. */
|
||||
static void
|
||||
grid_clear_cell(struct grid *gd, u_int px, u_int py, u_int bg)
|
||||
|
Reference in New Issue
Block a user