# window_copy_do_copy_line

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

```c
static enum window_copy_cmd_action window_copy_do_copy_line(struct window_copy_cmd_state *cs, int pipe, int cancel)
```

## Parameters

- `cs` (`struct window_copy_cmd_state *`)
- `pipe` (`int`)
- `cancel` (`int`)

## Called by

- [`window_copy_cmd_copy_line`](/en/tmux/3.7c/reference/c-function-window-copy-c-window_copy_cmd_copy_line/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L1384)
- [`window_copy_cmd_copy_line_and_cancel`](/en/tmux/3.7c/reference/c-function-window-copy-c-window_copy_cmd_copy_line_and_cancel/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L1390)
- [`window_copy_cmd_copy_pipe_line`](/en/tmux/3.7c/reference/c-function-window-copy-c-window_copy_cmd_copy_pipe_line/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L1396)
- [`window_copy_cmd_copy_pipe_line_and_cancel`](/en/tmux/3.7c/reference/c-function-window-copy-c-window_copy_cmd_copy_pipe_line_and_cancel/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L1402)

## Calls

- [`args_count`](/en/tmux/3.7c/reference/c-function-args_count/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L1327)
- [`args_string`](/en/tmux/3.7c/reference/c-function-args_string/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L1330)
- [`format_single`](/en/tmux/3.7c/reference/c-function-format_single/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L1337)
- [`window_copy_clear_selection`](/en/tmux/3.7c/reference/c-function-window-copy-c-window_copy_clear_selection/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L1370)
- [`window_copy_copy_pipe`](/en/tmux/3.7c/reference/c-function-window-copy-c-window_copy_copy_pipe/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L1358)
- [`window_copy_copy_selection`](/en/tmux/3.7c/reference/c-function-window-copy-c-window_copy_copy_selection/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L1361)
- [`window_copy_cursor_down`](/en/tmux/3.7c/reference/c-function-window-copy-c-window_copy_cursor_down/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L1353)
- [`window_copy_cursor_end_of_line`](/en/tmux/3.7c/reference/c-function-window-copy-c-window_copy_cursor_end_of_line/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L1354)
- [`window_copy_cursor_start_of_line`](/en/tmux/3.7c/reference/c-function-window-copy-c-window_copy_cursor_start_of_line/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L1350)
- [`window_copy_start_selection`](/en/tmux/3.7c/reference/c-function-window-copy-c-window_copy_start_selection/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L1351)

## Other function references

- [`args_has`](/en/tmux/3.7c/reference/c-function-args_has/) (function)

## Referenced declarations

- [`window_copy_cmd_state.c`](/en/tmux/3.7c/reference/c-struct-window_copy_cmd_state-c/) (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)
- [`window_copy_mode_data.oy`](/en/tmux/3.7c/reference/c-struct-window_copy_mode_data-oy/) (attribute)
- [`window_mode_entry.prefix`](/en/tmux/3.7c/reference/c-struct-window_mode_entry-prefix/) (attribute)
- [`window_copy_cmd_state.s`](/en/tmux/3.7c/reference/c-struct-window_copy_cmd_state-s/) (attribute)
- [`SEL_CHAR`](/en/tmux/3.7c/reference/c-struct-window_copy_mode_data-006030303266304015365171123151216336006130054251-sel_char/) (constant)
- [`window_copy_mode_data.selflag`](/en/tmux/3.7c/reference/c-struct-window_copy_mode_data-selflag/) (attribute)
- [`window_copy_cmd_state.wargs`](/en/tmux/3.7c/reference/c-struct-window_copy_cmd_state-wargs/) (attribute)
- [`window_copy_cmd_action`](/en/tmux/3.7c/reference/c-enum-window_copy_cmd_action/) (enum)
- [`WINDOW_COPY_CMD_CANCEL`](/en/tmux/3.7c/reference/c-enum-window_copy_cmd_action-window_copy_cmd_cancel/) (constant)
- [`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.wl`](/en/tmux/3.7c/reference/c-struct-window_copy_cmd_state-wl/) (attribute)
- [`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)
