# window_copy_cmd_centre_horizontal

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

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

## Parameters

- `cs` (`struct window_copy_cmd_state *`)

## Calls

- [`window_copy_update_cursor`](/en/tmux/3.7c/reference/c-function-window-copy-c-window_copy_update_cursor/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L1602)
- [`window_copy_update_selection`](/en/tmux/3.7c/reference/c-function-window-copy-c-window_copy_update_selection/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L1603)

## Referenced declarations

- [`window_copy_mode_data.cy`](/en/tmux/3.7c/reference/c-struct-window_copy_mode_data-cy/) (attribute)
- [`window_mode_entry.data`](/en/tmux/3.7c/reference/c-struct-window_mode_entry-data/) (attribute)
- [`window_pane.sx`](/en/tmux/3.7c/reference/c-struct-window_pane-sx/) (attribute)
- [`window_copy_cmd_action`](/en/tmux/3.7c/reference/c-enum-window_copy_cmd_action/) (enum)
- [`WINDOW_COPY_CMD_REDRAW`](/en/tmux/3.7c/reference/c-enum-window_copy_cmd_action-window_copy_cmd_redraw/) (constant)
- [`window_copy_cmd_state`](/en/tmux/3.7c/reference/c-struct-window_copy_cmd_state/) (struct)
- [`window_copy_cmd_state.wme`](/en/tmux/3.7c/reference/c-struct-window_copy_cmd_state-wme/) (attribute)
- [`window_mode_entry.wp`](/en/tmux/3.7c/reference/c-struct-window_mode_entry-wp/) (attribute)
