mirror of
https://github.com/tmux/tmux.git
synced 2025-09-02 05:21:10 +00:00
Pass window into mode functions.
This commit is contained in:
4
window.c
4
window.c
@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user