# session_update_history

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

```c
void session_update_history(struct session *s)
```

## Parameters

- `s` (`struct session *`)

## Called by

- [`options_push_changes`](/en/tmux/3.7c/reference/c-function-options_push_changes/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/options.c#L1262)

## Calls

- [`grid_collect_history`](/en/tmux/3.7c/reference/c-function-grid_collect_history/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/session.c#L779)
- [`log_debug`](/en/tmux/3.7c/reference/c-function-log_debug/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/session.c#L782)
- [`options_get_number`](/en/tmux/3.7c/reference/c-function-options_get_number/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/session.c#L772)

## Referenced declarations

- [`window_pane.base`](/en/tmux/3.7c/reference/c-struct-window_pane-base/) (attribute)
- [`screen.grid`](/en/tmux/3.7c/reference/c-struct-screen-grid/) (attribute)
- [`grid.hlimit`](/en/tmux/3.7c/reference/c-struct-grid-hlimit/) (attribute)
- [`grid.hsize`](/en/tmux/3.7c/reference/c-struct-grid-hsize/) (attribute)
- [`window_pane.id`](/en/tmux/3.7c/reference/c-struct-window_pane-id/) (attribute)
- [`session.options`](/en/tmux/3.7c/reference/c-struct-session-options/) (attribute)
- [`window.panes`](/en/tmux/3.7c/reference/c-struct-window-panes/) (attribute)
- [`session`](/en/tmux/3.7c/reference/c-struct-session/) (struct)
- [`winlink.window`](/en/tmux/3.7c/reference/c-struct-winlink-window/) (attribute)
- [`session.windows`](/en/tmux/3.7c/reference/c-struct-session-windows/) (attribute)
