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

@ -1258,7 +1258,7 @@ window_pane_reset_mode(struct window_pane *wp)
void
window_pane_key(struct window_pane *wp, struct client *c, struct session *s,
key_code key, struct mouse_event *m)
struct winlink *wl, key_code key, struct mouse_event *m)
{
struct window_pane *wp2;
@ -1268,7 +1268,7 @@ window_pane_key(struct window_pane *wp, struct client *c, struct session *s,
if (wp->mode != NULL) {
wp->modelast = time(NULL);
if (wp->mode->key != NULL)
wp->mode->key(wp, c, s, (key & ~KEYC_XTERM), m);
wp->mode->key(wp, c, s, wl, (key & ~KEYC_XTERM), m);
return;
}