Make adding mode formats a function pointer as well.

This commit is contained in:
nicm
2019-03-07 19:01:21 +00:00
parent 5cdd578906
commit 7f093fcddc
3 changed files with 17 additions and 17 deletions

4
tmux.h
View File

@ -43,6 +43,7 @@ struct cmdq_item;
struct cmdq_list;
struct environ;
struct format_job_tree;
struct format_tree;
struct input_ctx;
struct job;
struct mode_tree_data;
@ -707,6 +708,7 @@ struct window_mode {
void (*command)(struct window_pane *, struct client *,
struct session *, struct winlink *, struct args *,
struct mouse_event *);
void (*formats)(struct window_pane *, struct format_tree *);
};
#define WINDOW_MODE_TIMEOUT 180
@ -2304,8 +2306,6 @@ void printflike(2, 3) window_copy_add(struct window_pane *, const char *, ...);
void window_copy_vadd(struct window_pane *, const char *, va_list);
void window_copy_pageup(struct window_pane *, int);
void window_copy_start_drag(struct client *, struct mouse_event *);
void window_copy_add_formats(struct window_pane *,
struct format_tree *);
/* names.c */
void check_window_name(struct window *);