diff options
author | Nicholas Marriott <nicm@cvs.openbsd.org> | 2010-05-23 19:42:20 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@cvs.openbsd.org> | 2010-05-23 19:42:20 +0000 |
commit | 559ee9138d9b84db8904b406e65a5c4490153566 (patch) | |
tree | 9599cf7191df4a803d91096139a241f5b87e0411 /usr.bin/tmux/window-choose.c | |
parent | 763741ec316949089a253bc1c5318b108f11c9c2 (diff) |
Pass in the session, rather than the client, to window modes' key()
function. We were only ever using the client to find the session anyway.
This allows send-key to work properly for manipulating copy mode from
outside tmux.
From Micah Cowan.
Diffstat (limited to 'usr.bin/tmux/window-choose.c')
-rw-r--r-- | usr.bin/tmux/window-choose.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/usr.bin/tmux/window-choose.c b/usr.bin/tmux/window-choose.c index 023ec35e013..7749ecfd2dc 100644 --- a/usr.bin/tmux/window-choose.c +++ b/usr.bin/tmux/window-choose.c @@ -1,4 +1,4 @@ -/* $OpenBSD: window-choose.c,v 1.15 2010/02/01 22:15:51 nicm Exp $ */ +/* $OpenBSD: window-choose.c,v 1.16 2010/05/23 19:42:19 nicm Exp $ */ /* * Copyright (c) 2009 Nicholas Marriott <nicm@users.sourceforge.net> @@ -25,9 +25,9 @@ struct screen *window_choose_init(struct window_pane *); void window_choose_free(struct window_pane *); void window_choose_resize(struct window_pane *, u_int, u_int); -void window_choose_key(struct window_pane *, struct client *, int); +void window_choose_key(struct window_pane *, struct session *, int); void window_choose_mouse( - struct window_pane *, struct client *, struct mouse_event *); + struct window_pane *, struct session *, struct mouse_event *); void window_choose_redraw_screen(struct window_pane *); void window_choose_write_line( @@ -171,7 +171,7 @@ window_choose_resize(struct window_pane *wp, u_int sx, u_int sy) /* ARGSUSED */ void -window_choose_key(struct window_pane *wp, unused struct client *c, int key) +window_choose_key(struct window_pane *wp, unused struct session *sess, int key) { struct window_choose_mode_data *data = wp->modedata; struct screen *s = &data->screen; @@ -304,7 +304,7 @@ window_choose_key(struct window_pane *wp, unused struct client *c, int key) /* ARGSUSED */ void window_choose_mouse( - struct window_pane *wp, unused struct client *c, struct mouse_event *m) + struct window_pane *wp, unused struct session *sess, struct mouse_event *m) { struct window_choose_mode_data *data = wp->modedata; struct screen *s = &data->screen; |