# window_buffer_do_paste

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

```c
static void window_buffer_do_paste(void *modedata, void *itemdata, struct client *c, key_code key)
```

## Parameters

- `modedata` (`void *`)
- `itemdata` (`void *`)
- `c` (`struct client *`)
- `key` (`key_code`)

## Called by

- [`window_buffer_key`](/en/tmux/latest/reference/c-function-window-buffer-c-window_buffer_key/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-buffer.c#L572)

## Calls

- [`mode_tree_run_command`](/en/tmux/latest/reference/c-function-mode_tree_run_command/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-buffer.c#L459)
- [`paste_get_name`](/en/tmux/latest/reference/c-function-paste_get_name/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-buffer.c#L458)

## Referenced declarations

- [`__unused`](/en/tmux/latest/reference/c-define-compat-h-__unused/) (constant)
- [`client`](/en/tmux/latest/reference/c-struct-client/) (struct)
- [`window_buffer_modedata.command`](/en/tmux/latest/reference/c-struct-window_buffer_modedata-command/) (attribute)
- [`window_buffer_modedata.data`](/en/tmux/latest/reference/c-struct-window_buffer_modedata-data/) (attribute)
- [`key_code`](/en/tmux/latest/reference/c-typedef-key_code/) (typealias)
- [`window_buffer_itemdata.name`](/en/tmux/latest/reference/c-struct-window_buffer_itemdata-name/) (attribute)
