aboutsummaryrefslogtreecommitdiff
path: root/tmux.h
diff options
context:
space:
mode:
authorTiago Cunha <tcunha@gmx.com>2012-07-04 11:03:20 +0000
committerTiago Cunha <tcunha@gmx.com>2012-07-04 11:03:20 +0000
commit7e02d2f459531107770e925bebf1fbc548719de0 (patch)
treebbad76367cef32639ece94dad81b70167140657a /tmux.h
parent5761712799beb830ba18e27b3300aaa248ff83d4 (diff)
downloadrtmux-7e02d2f459531107770e925bebf1fbc548719de0.tar.gz
rtmux-7e02d2f459531107770e925bebf1fbc548719de0.tar.bz2
rtmux-7e02d2f459531107770e925bebf1fbc548719de0.zip
Sync OpenBSD patchset 1143:
Provide common helper function for adding windows and sessions to choose lists and expand %% in command before using it rather than at callback time. From Thomas Adam.
Diffstat (limited to 'tmux.h')
-rw-r--r--tmux.h14
1 files changed, 8 insertions, 6 deletions
diff --git a/tmux.h b/tmux.h
index 2c902c77..df05dd33 100644
--- a/tmux.h
+++ b/tmux.h
@@ -848,8 +848,7 @@ struct window_choose_data {
struct session *session;
struct format_tree *ft;
char *ft_template;
- char *raw_format;
- char *action;
+ char *command;
u_int idx;
};
@@ -2131,16 +2130,19 @@ void window_copy_pageup(struct window_pane *);
/* window-choose.c */
extern const struct window_mode window_choose_mode;
-void window_choose_vadd(
- struct window_pane *, int, const char *, va_list);
void window_choose_add(struct window_pane *,
struct window_choose_data *);
void window_choose_ready(struct window_pane *,
u_int, void (*)(struct window_choose_data *),
void (*)(struct window_choose_data *));
-struct window_choose_data *window_choose_data_create(
- struct cmd_ctx *);
+struct window_choose_data *window_choose_data_create(struct cmd_ctx *);
void window_choose_ctx(struct window_choose_data *);
+struct window_choose_data *window_choose_add_window(struct window_pane *,
+ struct cmd_ctx *, struct session *, struct winlink *,
+ const char *, char *, u_int);
+struct window_choose_data *window_choose_add_session(struct window_pane *,
+ struct cmd_ctx *, struct session *, const char *,
+ char *, u_int);
/* names.c */
void queue_window_name(struct window *);