=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/tmux/cmd-send-keys.c,v retrieving revision 1.7 retrieving revision 1.8 diff -c -r1.7 -r1.8 *** src/usr.bin/tmux/cmd-send-keys.c 2009/12/03 22:50:10 1.7 --- src/usr.bin/tmux/cmd-send-keys.c 2010/05/23 19:42:19 1.8 *************** *** 1,4 **** ! /* $OpenBSD: cmd-send-keys.c,v 1.7 2009/12/03 22:50:10 nicm Exp $ */ /* * Copyright (c) 2008 Nicholas Marriott --- 1,4 ---- ! /* $OpenBSD: cmd-send-keys.c,v 1.8 2010/05/23 19:42:19 nicm Exp $ */ /* * Copyright (c) 2008 Nicholas Marriott *************** *** 105,120 **** { struct cmd_send_keys_data *data = self->data; struct window_pane *wp; u_int i; if (data == NULL) return (-1); ! if (cmd_find_pane(ctx, data->target, NULL, &wp) == NULL) return (-1); for (i = 0; i < data->nkeys; i++) ! window_pane_key(wp, ctx->curclient, data->keys[i]); return (0); } --- 105,121 ---- { struct cmd_send_keys_data *data = self->data; struct window_pane *wp; + struct session *s; u_int i; if (data == NULL) return (-1); ! if (cmd_find_pane(ctx, data->target, &s, &wp) == NULL) return (-1); for (i = 0; i < data->nkeys; i++) ! window_pane_key(wp, s, data->keys[i]); return (0); }