# window_buffer_start_edit

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

```c
static void window_buffer_start_edit(struct window_buffer_modedata *data, struct window_buffer_itemdata *item, struct client *c)
```

## Parameters

- `data` (`struct window_buffer_modedata *`)
- `item` (`struct window_buffer_itemdata *`)
- `c` (`struct client *`)

## Called by

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

## Calls

- [`paste_buffer_data`](/en/tmux/3.7c/reference/c-function-paste_buffer_data/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-buffer.c#L523)
- [`window_buffer_finish_edit`](/en/tmux/3.7c/reference/c-function-window-buffer-c-window_buffer_finish_edit/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-buffer.c#L531)
- [`xcalloc`](/en/tmux/3.7c/reference/c-function-xcalloc/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-buffer.c#L525)
- [`xstrdup`](/en/tmux/3.7c/reference/c-function-xstrdup/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-buffer.c#L527)

## Other function references

- [`paste_buffer_name`](/en/tmux/3.7c/reference/c-function-paste_buffer_name/) (function)
- [`paste_get_name`](/en/tmux/3.7c/reference/c-function-paste_get_name/) (function)
- [`window_buffer_edit_close_cb`](/en/tmux/3.7c/reference/c-function-window-buffer-c-window_buffer_edit_close_cb/) (function)

## Referenced declarations

- [`client`](/en/tmux/3.7c/reference/c-struct-client/) (struct)
- [`window_pane.id`](/en/tmux/3.7c/reference/c-struct-window_pane-id/) (attribute)
- [`window_buffer_editdata.name`](/en/tmux/3.7c/reference/c-struct-window_buffer_editdata-name/) (attribute)
- [`window_buffer_itemdata.name`](/en/tmux/3.7c/reference/c-struct-window_buffer_itemdata-name/) (attribute)
- [`window_buffer_editdata.pb`](/en/tmux/3.7c/reference/c-struct-window_buffer_editdata-pb/) (attribute)
- [`window_buffer_itemdata`](/en/tmux/3.7c/reference/c-struct-window_buffer_itemdata/) (struct)
- [`window_buffer_modedata`](/en/tmux/3.7c/reference/c-struct-window_buffer_modedata/) (struct)
- [`window_buffer_modedata.wp`](/en/tmux/3.7c/reference/c-struct-window_buffer_modedata-wp/) (attribute)
- [`window_buffer_editdata.wp_id`](/en/tmux/3.7c/reference/c-struct-window_buffer_editdata-wp_id/) (attribute)
