# window_pane_paste

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

```c
void window_pane_paste(struct window_pane *wp, key_code key, char *buf, size_t len)
```

## Parameters

- `wp` (`struct window_pane *`)
- `key` (`key_code`)
- `buf` (`char *`)
- `len` (`size_t`)

## Called by

- [`server_client_key_callback`](/en/tmux/3.7c/reference/c-function-server-client-c-server_client_key_callback/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/server-client.c#L1429)

## Calls

- [`log_debug`](/en/tmux/3.7c/reference/c-function-log_debug/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window.c#L1348)
- [`options_get_number`](/en/tmux/3.7c/reference/c-function-options_get_number/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window.c#L1351)
- [`window_pane_copy_paste`](/en/tmux/3.7c/reference/c-function-window-c-window_pane_copy_paste/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window.c#L1352)

## Referenced declarations

- [`window_pane.event`](/en/tmux/3.7c/reference/c-struct-window_pane-event/) (attribute)
- [`window_pane.fd`](/en/tmux/3.7c/reference/c-struct-window_pane-fd/) (attribute)
- [`window_pane.flags`](/en/tmux/3.7c/reference/c-struct-window_pane-flags/) (attribute)
- [`key_code`](/en/tmux/3.7c/reference/c-typedef-key_code/) (typealias)
- [`KEYC_IS_PASTE`](/en/tmux/3.7c/reference/c-define-tmux-h-keyc_is_paste/) (constant)
- [`screen.mode`](/en/tmux/3.7c/reference/c-struct-screen-mode/) (attribute)
- [`MODE_BRACKETPASTE`](/en/tmux/3.7c/reference/c-define-tmux-h-mode_bracketpaste/) (constant)
- [`window_pane.modes`](/en/tmux/3.7c/reference/c-struct-window_pane-modes/) (attribute)
- [`window_pane.options`](/en/tmux/3.7c/reference/c-struct-window_pane-options/) (attribute)
- [`PANE_INPUTOFF`](/en/tmux/3.7c/reference/c-define-tmux-h-pane_inputoff/) (constant)
- [`window_pane.screen`](/en/tmux/3.7c/reference/c-struct-window_pane-screen/) (attribute)
- [`window_pane`](/en/tmux/3.7c/reference/c-struct-window_pane/) (struct)
