summaryrefslogtreecommitdiff
path: root/usr.bin/tmux/cmd-send-prefix.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@cvs.openbsd.org>2010-05-23 19:42:20 +0000
committerNicholas Marriott <nicm@cvs.openbsd.org>2010-05-23 19:42:20 +0000
commit559ee9138d9b84db8904b406e65a5c4490153566 (patch)
tree9599cf7191df4a803d91096139a241f5b87e0411 /usr.bin/tmux/cmd-send-prefix.c
parent763741ec316949089a253bc1c5318b108f11c9c2 (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/cmd-send-prefix.c')
-rw-r--r--usr.bin/tmux/cmd-send-prefix.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/tmux/cmd-send-prefix.c b/usr.bin/tmux/cmd-send-prefix.c
index 8f784f4aec3..4bfcf08b915 100644
--- a/usr.bin/tmux/cmd-send-prefix.c
+++ b/usr.bin/tmux/cmd-send-prefix.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cmd-send-prefix.c,v 1.6 2009/11/13 19:53:29 nicm Exp $ */
+/* $OpenBSD: cmd-send-prefix.c,v 1.7 2010/05/23 19:42:19 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -49,7 +49,7 @@ cmd_send_prefix_exec(struct cmd *self, struct cmd_ctx *ctx)
return (-1);
keylist = options_get_data(&s->options, "prefix");
- window_pane_key(wp, ctx->curclient, ARRAY_FIRST(keylist));
+ window_pane_key(wp, s, ARRAY_FIRST(keylist));
return (0);
}