# paste_replace

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

```c
void paste_replace(struct paste_buffer *pb, char *data, size_t size)
```

## Parameters

- `pb` (`struct paste_buffer *`)
- `data` (`char *`)
- `size` (`size_t`)

## Called by

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

## Calls

- [`notify_paste_buffer`](/en/tmux/3.7c/reference/c-function-notify_paste_buffer/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/paste.c#L327)

## Referenced declarations

- [`paste_buffer.data`](/en/tmux/3.7c/reference/c-struct-paste_buffer-data/) (attribute)
- [`paste_buffer.name`](/en/tmux/3.7c/reference/c-struct-paste_buffer-name/) (attribute)
- [`paste_buffer`](/en/tmux/3.7c/reference/c-struct-paste_buffer/) (struct)
- [`paste_buffer.size`](/en/tmux/3.7c/reference/c-struct-paste_buffer-size/) (attribute)
