# window_buffer_edit_close_cb

- **Language:** C
- **Kind:** function
- **Source:** https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window-buffer.c#L436
- **Page:** https://libtmux.org/en/tmux/3.2a/reference/c-function-window-buffer-c-window_buffer_edit_close_cb/

```c
static void window_buffer_edit_close_cb(char *buf, size_t len, void *arg)
```

## Parameters

- `buf` (`char *`)
- `len` (`size_t`)
- `arg` (`void *`)

## Calls

- [`mode_tree_build`](/en/tmux/3.2a/reference/c-function-mode_tree_build/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window-buffer.c#L470)
- [`mode_tree_draw`](/en/tmux/3.2a/reference/c-function-mode_tree_draw/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window-buffer.c#L471)
- [`paste_buffer_data`](/en/tmux/3.2a/reference/c-function-paste_buffer_data/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window-buffer.c#L457)
- [`paste_get_name`](/en/tmux/3.2a/reference/c-function-paste_get_name/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window-buffer.c#L451)
- [`paste_replace`](/en/tmux/3.2a/reference/c-function-paste_replace/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window-buffer.c#L463)
- [`window_buffer_finish_edit`](/en/tmux/3.2a/reference/c-function-window-buffer-c-window_buffer_finish_edit/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window-buffer.c#L447)
- [`window_pane_find_by_id`](/en/tmux/3.2a/reference/c-function-window_pane_find_by_id/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window-buffer.c#L465)

## Referenced by

- [`window_buffer_start_edit`](/en/tmux/3.2a/reference/c-function-window-buffer-c-window_buffer_start_edit/) (function)

## Referenced declarations

- [`window_buffer_modedata.data`](/en/tmux/3.2a/reference/c-struct-window_buffer_modedata-data/) (attribute)
- [`window_mode_entry.data`](/en/tmux/3.2a/reference/c-struct-window_mode_entry-data/) (attribute)
- [`window_pane.flags`](/en/tmux/3.2a/reference/c-struct-window_pane-flags/) (attribute)
- [`window_mode_entry.mode`](/en/tmux/3.2a/reference/c-struct-window_mode_entry-mode/) (attribute)
- [`window_pane.modes`](/en/tmux/3.2a/reference/c-struct-window_pane-modes/) (attribute)
- [`window_buffer_editdata.name`](/en/tmux/3.2a/reference/c-struct-window_buffer_editdata-name/) (attribute)
- [`PANE_REDRAW`](/en/tmux/3.2a/reference/c-define-tmux-h-pane_redraw/) (constant)
- [`window_buffer_editdata.pb`](/en/tmux/3.2a/reference/c-struct-window_buffer_editdata-pb/) (attribute)
- [`window_buffer_mode`](/en/tmux/3.2a/reference/c-variable-window_buffer_mode/) (attribute)
- [`window_mode_entry.wp`](/en/tmux/3.2a/reference/c-struct-window_mode_entry-wp/) (attribute)
- [`window_buffer_editdata.wp_id`](/en/tmux/3.2a/reference/c-struct-window_buffer_editdata-wp_id/) (attribute)
