# grid_compact_line

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

```c
static void grid_compact_line(struct grid_line *gl)
```

## Parameters

- `gl` (`struct grid_line *`)

## Called by

- [`grid_scroll_history`](/en/tmux/latest/reference/c-function-grid_scroll_history/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/grid.c#L442)

## Calls

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

## Referenced declarations

- [`grid_line.celldata`](/en/tmux/latest/reference/c-struct-grid_line-celldata/) (attribute)
- [`grid_line.cellsize`](/en/tmux/latest/reference/c-struct-grid_line-cellsize/) (attribute)
- [`grid_line.extddata`](/en/tmux/latest/reference/c-struct-grid_line-extddata/) (attribute)
- [`grid_line.extdsize`](/en/tmux/latest/reference/c-struct-grid_line-extdsize/) (attribute)
- [`grid_cell_entry.flags`](/en/tmux/latest/reference/c-struct-grid_cell_entry-flags/) (attribute)
- [`GRID_FLAG_EXTENDED`](/en/tmux/latest/reference/c-define-tmux-h-grid_flag_extended/) (constant)
- [`grid_line`](/en/tmux/latest/reference/c-struct-grid_line/) (struct)
