# popup_editor

- **Language:** C
- **Kind:** function
- **Source:** https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/popup.c#L403
- **Page:** https://libtmux.org/en/tmux/3.2a/reference/c-function-popup_editor/

```c
int popup_editor(struct client *c, const char *buf, size_t len, popup_finish_edit_cb cb, void *arg)
```

## Parameters

- `c` (`struct client *`)
- `buf` (`const char *`)
- `len` (`size_t`)
- `cb` (`popup_finish_edit_cb`)
- `arg` (`void *`)

## Calls

- [`options_get_string`](/en/tmux/3.2a/reference/c-function-options_get_string/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/popup.c#L414)
- [`popup_editor_free`](/en/tmux/3.2a/reference/c-function-popup-c-popup_editor_free/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/popup.c#L441)
- [`xasprintf`](/en/tmux/3.2a/reference/c-function-xasprintf/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/popup.c#L438)
- [`xcalloc`](/en/tmux/3.2a/reference/c-function-xcalloc/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/popup.c#L428)
- [`xstrdup`](/en/tmux/3.2a/reference/c-function-xstrdup/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/popup.c#L429)

## Other function references

- [`popup_display`](/en/tmux/3.2a/reference/c-function-popup_display/) (function)
- [`popup_editor_close_cb`](/en/tmux/3.2a/reference/c-function-popup-c-popup_editor_close_cb/) (function)

## Referenced declarations

- [`_PATH_TMP`](/en/tmux/3.2a/reference/c-define-compat-h-_path_tmp/) (constant)
- [`popup_editor.arg`](/en/tmux/3.2a/reference/c-struct-popup_editor-arg/) (attribute)
- [`popup_editor.cb`](/en/tmux/3.2a/reference/c-struct-popup_editor-cb/) (attribute)
- [`client`](/en/tmux/3.2a/reference/c-struct-client/) (struct)
- [`global_options`](/en/tmux/3.2a/reference/c-variable-global_options/) (attribute)
- [`popup_editor.path`](/en/tmux/3.2a/reference/c-struct-popup_editor-path/) (attribute)
- [`POPUP_CLOSEEXIT`](/en/tmux/3.2a/reference/c-define-tmux-h-popup_closeexit/) (constant)
- [`popup_finish_edit_cb`](/en/tmux/3.2a/reference/c-typedef-popup_finish_edit_cb/) (typealias)
- [`tty.sx`](/en/tmux/3.2a/reference/c-struct-tty-sx/) (attribute)
- [`tty.sy`](/en/tmux/3.2a/reference/c-struct-tty-sy/) (attribute)
- [`client.tty`](/en/tmux/3.2a/reference/c-struct-client-tty/) (attribute)
