# grid_adjust_lines

- **Language:** C
- **Kind:** function
- **Source:** https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/grid.c#L198
- **Page:** https://libtmux.org/en/tmux/3.7c/reference/c-function-grid_adjust_lines/

```c
void grid_adjust_lines(struct grid *gd, u_int lines)
```

## Parameters

- `gd` (`struct grid *`)
- `lines` (`u_int`)

## Called by

- [`screen_resize_y`](/en/tmux/3.7c/reference/c-function-screen-c-screen_resize_y/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/screen.c#L448)

## Calls

- [`xreallocarray`](/en/tmux/3.7c/reference/c-function-xreallocarray/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/grid.c#L200)

## Referenced declarations

- [`grid`](/en/tmux/3.7c/reference/c-struct-grid/) (struct)
- [`grid.linedata`](/en/tmux/3.7c/reference/c-struct-grid-linedata/) (attribute)
