aboutsummaryrefslogtreecommitdiff
path: root/tmux.h
diff options
context:
space:
mode:
authorNicholas Marriott <nicholas.marriott@gmail.com>2020-05-13 06:58:07 +0100
committerNicholas Marriott <nicholas.marriott@gmail.com>2020-05-13 06:58:07 +0100
commit4cb1d3d7a92c08c64b58a600125d45256c760ace (patch)
treed96797c5e33b482cc090d6fb872715a3319bb90a /tmux.h
parent6214cd07264b393fd751271791870f1e8f251371 (diff)
downloadrtmux-4cb1d3d7a92c08c64b58a600125d45256c760ace.tar.gz
rtmux-4cb1d3d7a92c08c64b58a600125d45256c760ace.tar.bz2
rtmux-4cb1d3d7a92c08c64b58a600125d45256c760ace.zip
Move editor stuff to common code in popup.c.
Diffstat (limited to 'tmux.h')
-rw-r--r--tmux.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/tmux.h b/tmux.h
index f2675345..932d85ec 100644
--- a/tmux.h
+++ b/tmux.h
@@ -2872,6 +2872,7 @@ int menu_display(struct menu *, int, struct cmdq_item *, u_int,
#define POPUP_CLOSEEXIT 0x2
#define POPUP_CLOSEEXITZERO 0x4
typedef void (*popup_close_cb)(int, void *);
+typedef void (*popup_finish_edit_cb)(char *, size_t, void *);
u_int popup_width(struct cmdq_item *, u_int, const char **,
struct client *, struct cmd_find_state *);
u_int popup_height(u_int, const char **);
@@ -2879,6 +2880,8 @@ int popup_display(int, struct cmdq_item *, u_int, u_int, u_int,
u_int, u_int, const char **, const char *, const char *,
const char *, struct client *, struct cmd_find_state *,
popup_close_cb, void *);
+int popup_editor(struct client *, const char *, size_t,
+ popup_finish_edit_cb, void *);
/* style.c */
int style_parse(struct style *,const struct grid_cell *,