summaryrefslogtreecommitdiffstats
path: root/cmd-send-prefix.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@openbsd.org>2010-05-23 19:42:19 +0000
committerNicholas Marriott <nicm@openbsd.org>2010-05-23 19:42:19 +0000
commit4f5c5b37b866967be189901bc140ca6b8c25c5e3 (patch)
treeea5b685be2f69f30fc18872caefc0024e2574c7a /cmd-send-prefix.c
parent0ed727a0128dd84ae727a337208a31df8f3cff02 (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 'cmd-send-prefix.c')
-rw-r--r--cmd-send-prefix.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd-send-prefix.c b/cmd-send-prefix.c
index ccc98151..c7f7e9fa 100644
--- a/cmd-send-prefix.c
+++ b/cmd-send-prefix.c
@@ -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);
}