# window_copy_cmd_recentre_top_bottom

- **Language:** C
- **Kind:** function
- **Source:** https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L2820
- **Page:** https://libtmux.org/en/tmux/latest/reference/c-function-window-copy-c-window_copy_cmd_recentre_top_bottom/

```c
static enum window_copy_cmd_action window_copy_cmd_recentre_top_bottom(struct window_copy_cmd_state *cs)
```

## Parameters

- `cs` (`struct window_copy_cmd_state *`)

## Calls

- [`window_copy_scroll_down`](/en/tmux/latest/reference/c-function-window-copy-c-window_copy_scroll_down/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L2855)
- [`window_copy_scroll_up`](/en/tmux/latest/reference/c-function-window-copy-c-window_copy_scroll_up/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L2857)
- [`window_copy_update_selection`](/en/tmux/latest/reference/c-function-window-copy-c-window_copy_update_selection/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L2870)

## Referenced declarations

- [`window_copy_mode_data.backing`](/en/tmux/latest/reference/c-struct-window_copy_mode_data-backing/) (attribute)
- [`window_copy_mode_data.cy`](/en/tmux/latest/reference/c-struct-window_copy_mode_data-cy/) (attribute)
- [`window_mode_entry.data`](/en/tmux/latest/reference/c-struct-window_mode_entry-data/) (attribute)
- [`window_copy_mode_data.oy`](/en/tmux/latest/reference/c-struct-window_copy_mode_data-oy/) (attribute)
- [`RECENTRE_BOTTOM`](/en/tmux/latest/reference/c-struct-window_copy_mode_data-351174245304145166213144072251341047345175345230-recentre_bottom/) (constant)
- [`window_copy_mode_data.recentre_line`](/en/tmux/latest/reference/c-struct-window_copy_mode_data-recentre_line/) (attribute)
- [`RECENTRE_MIDDLE`](/en/tmux/latest/reference/c-struct-window_copy_mode_data-351174245304145166213144072251341047345175345230-recentre_middle/) (constant)
- [`window_copy_mode_data.recentre_state`](/en/tmux/latest/reference/c-struct-window_copy_mode_data-recentre_state/) (attribute)
- [`RECENTRE_TOP`](/en/tmux/latest/reference/c-struct-window_copy_mode_data-351174245304145166213144072251341047345175345230-recentre_top/) (constant)
- [`window_copy_mode_data.screen`](/en/tmux/latest/reference/c-struct-window_copy_mode_data-screen/) (attribute)
- [`screen_hsize`](/en/tmux/latest/reference/c-define-tmux-h-screen_hsize/) (constant)
- [`screen_size_y`](/en/tmux/latest/reference/c-define-tmux-h-screen_size_y/) (constant)
- [`window_copy_cmd_action`](/en/tmux/latest/reference/c-enum-window_copy_cmd_action/) (enum)
- [`WINDOW_COPY_CMD_REDRAW`](/en/tmux/latest/reference/c-enum-window_copy_cmd_action-window_copy_cmd_redraw/) (constant)
- [`window_copy_cmd_state`](/en/tmux/latest/reference/c-struct-window_copy_cmd_state/) (struct)
- [`window_copy_cmd_state.wme`](/en/tmux/latest/reference/c-struct-window_copy_cmd_state-wme/) (attribute)
