# window_copy_do_copy_end_of_line

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

```c
static enum window_copy_cmd_action window_copy_do_copy_end_of_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_end_of_line`](/en/tmux/latest/reference/c-function-window-copy-c-window_copy_cmd_copy_end_of_line/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L1296)
- [`window_copy_cmd_copy_end_of_line_and_cancel`](/en/tmux/latest/reference/c-function-window-copy-c-window_copy_cmd_copy_end_of_line_and_cancel/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L1302)
- [`window_copy_cmd_copy_pipe_end_of_line`](/en/tmux/latest/reference/c-function-window-copy-c-window_copy_cmd_copy_pipe_end_of_line/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L1308)
- [`window_copy_cmd_copy_pipe_end_of_line_and_cancel`](/en/tmux/latest/reference/c-function-window-copy-c-window_copy_cmd_copy_pipe_end_of_line_and_cancel/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L1315)

## Calls

- [`args_count`](/en/tmux/latest/reference/c-function-args_count/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L1240)
- [`args_string`](/en/tmux/latest/reference/c-function-args_string/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L1244)
- [`format_single`](/en/tmux/latest/reference/c-function-format_single/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L1251)
- [`window_copy_clear_selection`](/en/tmux/latest/reference/c-function-window-copy-c-window_copy_clear_selection/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L1282)
- [`window_copy_copy_pipe`](/en/tmux/latest/reference/c-function-window-copy-c-window_copy_copy_pipe/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L1270)
- [`window_copy_copy_selection`](/en/tmux/latest/reference/c-function-window-copy-c-window_copy_copy_selection/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L1273)
- [`window_copy_cursor_down`](/en/tmux/latest/reference/c-function-window-copy-c-window_copy_cursor_down/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L1265)
- [`window_copy_cursor_end_of_line`](/en/tmux/latest/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#L1266)
- [`window_copy_start_selection`](/en/tmux/latest/reference/c-function-window-copy-c-window_copy_start_selection/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L1263)

## Other function references

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

## Referenced declarations

- [`window_copy_cmd_state.c`](/en/tmux/latest/reference/c-struct-window_copy_cmd_state-c/) (attribute)
- [`window_copy_mode_data.cx`](/en/tmux/latest/reference/c-struct-window_copy_mode_data-cx/) (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)
- [`window_mode_entry.prefix`](/en/tmux/latest/reference/c-struct-window_mode_entry-prefix/) (attribute)
- [`window_copy_cmd_state.s`](/en/tmux/latest/reference/c-struct-window_copy_cmd_state-s/) (attribute)
- [`window_copy_cmd_state.wargs`](/en/tmux/latest/reference/c-struct-window_copy_cmd_state-wargs/) (attribute)
- [`window_copy_cmd_action`](/en/tmux/latest/reference/c-enum-window_copy_cmd_action/) (enum)
- [`WINDOW_COPY_CMD_CANCEL`](/en/tmux/latest/reference/c-enum-window_copy_cmd_action-window_copy_cmd_cancel/) (constant)
- [`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.wl`](/en/tmux/latest/reference/c-struct-window_copy_cmd_state-wl/) (attribute)
- [`window_copy_cmd_state.wme`](/en/tmux/latest/reference/c-struct-window_copy_cmd_state-wme/) (attribute)
- [`window_mode_entry.wp`](/en/tmux/latest/reference/c-struct-window_mode_entry-wp/) (attribute)
