Pass window into mode functions.

This commit is contained in:
nicm
2018-12-18 13:20:44 +00:00
parent 4e3d661284
commit bde0224deb
9 changed files with 37 additions and 25 deletions

View File

@ -26,7 +26,8 @@
static const char *window_copy_key_table(struct window_pane *);
static void window_copy_command(struct window_pane *, struct client *,
struct session *, struct args *, struct mouse_event *);
struct session *, struct winlink *, struct args *,
struct mouse_event *);
static struct screen *window_copy_init(struct window_pane *,
struct cmd_find_state *, struct args *);
static void window_copy_free(struct window_pane *);
@ -514,7 +515,7 @@ window_copy_key_table(struct window_pane *wp)
static void
window_copy_command(struct window_pane *wp, struct client *c, struct session *s,
struct args *args, struct mouse_event *m)
__unused struct winlink *wl, struct args *args, struct mouse_event *m)
{
struct window_copy_mode_data *data = wp->modedata;
struct screen *sn = &data->screen;