# window_copy_cmd_history_top

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

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

## Parameters

- `cs` (`struct window_copy_cmd_state *`)

## Calls

- [`window_copy_other_end`](/en/tmux/3.7c/reference/c-function-window-copy-c-window_copy_other_end/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L1696)
- [`window_copy_search_marks`](/en/tmux/3.7c/reference/c-function-window-copy-c-window_copy_search_marks/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L1703)
- [`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#L1704)

## Referenced declarations

- [`window_copy_mode_data.backing`](/en/tmux/3.7c/reference/c-struct-window_copy_mode_data-backing/) (attribute)
- [`window_copy_mode_data.cx`](/en/tmux/3.7c/reference/c-struct-window_copy_mode_data-cx/) (attribute)
- [`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)
- [`LINE_SEL_LEFT_RIGHT`](/en/tmux/3.7c/reference/c-struct-window_copy_mode_data-253364054321004071040107322151204133204166300136-line_sel_left_right/) (constant)
- [`window_copy_mode_data.lineflag`](/en/tmux/3.7c/reference/c-struct-window_copy_mode_data-lineflag/) (attribute)
- [`window_copy_mode_data.oy`](/en/tmux/3.7c/reference/c-struct-window_copy_mode_data-oy/) (attribute)
- [`screen_hsize`](/en/tmux/3.7c/reference/c-define-tmux-h-screen_hsize/) (constant)
- [`window_copy_mode_data.searchmark`](/en/tmux/3.7c/reference/c-struct-window_copy_mode_data-searchmark/) (attribute)
- [`window_copy_mode_data.searchregex`](/en/tmux/3.7c/reference/c-struct-window_copy_mode_data-searchregex/) (attribute)
- [`window_copy_mode_data.sely`](/en/tmux/3.7c/reference/c-struct-window_copy_mode_data-sely/) (attribute)
- [`window_copy_mode_data.timeout`](/en/tmux/3.7c/reference/c-struct-window_copy_mode_data-timeout/) (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)
