# window_copy_copy_selection

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

```c
static void window_copy_copy_selection(struct window_mode_entry *, const char *, int, int)
```

## Parameters

- `wme` (`struct window_mode_entry *`)
- `prefix` (`const char *`)
- `set_paste` (`int`)
- `set_clip` (`int`)

## Called by

- [`window_copy_cmd_copy_selection_no_clear`](/en/tmux/latest/reference/c-function-window-copy-c-window_copy_cmd_copy_selection_no_clear/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L1422)
- [`window_copy_do_copy_end_of_line`](/en/tmux/latest/reference/c-function-window-copy-c-window_copy_do_copy_end_of_line/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L1273)
- [`window_copy_do_copy_line`](/en/tmux/latest/reference/c-function-window-copy-c-window_copy_do_copy_line/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L1361)

## Calls

- [`window_copy_copy_buffer`](/en/tmux/latest/reference/c-function-window-copy-c-window_copy_copy_buffer/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L5563)
- [`window_copy_get_selection`](/en/tmux/latest/reference/c-function-window-copy-c-window_copy_get_selection/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L5561)

## Referenced declarations

- [`window_mode_entry`](/en/tmux/latest/reference/c-struct-window_mode_entry/) (struct)
