# window_copy_cmd_copy_line

- **Language:** C
- **Kind:** function
- **Source:** https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window-copy.c#L992
- **Page:** https://libtmux.org/en/tmux/3.2a/reference/c-function-window-copy-c-window_copy_cmd_copy_line/

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

## Parameters

- `cs` (`struct window_copy_cmd_state *`)

## Calls

- [`format_single`](/en/tmux/3.2a/reference/c-function-format_single/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window-copy.c#L1004)
- [`window_copy_copy_selection`](/en/tmux/3.2a/reference/c-function-window-copy-c-window_copy_copy_selection/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window-copy.c#L1014)
- [`window_copy_cursor_down`](/en/tmux/3.2a/reference/c-function-window-copy-c-window_copy_cursor_down/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window-copy.c#L1010)
- [`window_copy_cursor_end_of_line`](/en/tmux/3.2a/reference/c-function-window-copy-c-window_copy_cursor_end_of_line/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window-copy.c#L1011)
- [`window_copy_cursor_start_of_line`](/en/tmux/3.2a/reference/c-function-window-copy-c-window_copy_cursor_start_of_line/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window-copy.c#L1007)
- [`window_copy_start_selection`](/en/tmux/3.2a/reference/c-function-window-copy-c-window_copy_start_selection/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window-copy.c#L1008)

## Referenced declarations

- [`args.argc`](/en/tmux/3.2a/reference/c-struct-args-argc/) (attribute)
- [`window_copy_cmd_state.args`](/en/tmux/3.2a/reference/c-struct-window_copy_cmd_state-args/) (attribute)
- [`args.argv`](/en/tmux/3.2a/reference/c-struct-args-argv/) (attribute)
- [`window_copy_cmd_state.c`](/en/tmux/3.2a/reference/c-struct-window_copy_cmd_state-c/) (attribute)
- [`window_mode_entry.data`](/en/tmux/3.2a/reference/c-struct-window_mode_entry-data/) (attribute)
- [`window_mode_entry.prefix`](/en/tmux/3.2a/reference/c-struct-window_mode_entry-prefix/) (attribute)
- [`window_copy_cmd_state.s`](/en/tmux/3.2a/reference/c-struct-window_copy_cmd_state-s/) (attribute)
- [`SEL_CHAR`](/en/tmux/3.2a/reference/c-struct-window_copy_mode_data-006030303266304015365171123151216336006130054251-sel_char/) (constant)
- [`window_copy_mode_data.selflag`](/en/tmux/3.2a/reference/c-struct-window_copy_mode_data-selflag/) (attribute)
- [`window_copy_cmd_action`](/en/tmux/3.2a/reference/c-enum-window_copy_cmd_action/) (enum)
- [`WINDOW_COPY_CMD_CANCEL`](/en/tmux/3.2a/reference/c-enum-window_copy_cmd_action-window_copy_cmd_cancel/) (constant)
- [`WINDOW_COPY_CMD_REDRAW`](/en/tmux/3.2a/reference/c-enum-window_copy_cmd_action-window_copy_cmd_redraw/) (constant)
- [`window_copy_cmd_state`](/en/tmux/3.2a/reference/c-struct-window_copy_cmd_state/) (struct)
- [`window_copy_cmd_state.wl`](/en/tmux/3.2a/reference/c-struct-window_copy_cmd_state-wl/) (attribute)
- [`window_copy_cmd_state.wme`](/en/tmux/3.2a/reference/c-struct-window_copy_cmd_state-wme/) (attribute)
- [`window_mode_entry.wp`](/en/tmux/3.2a/reference/c-struct-window_mode_entry-wp/) (attribute)
