From 36475f80e9885588ed6a67f762289f7e56add84f Mon Sep 17 00:00:00 2001 From: Tiago Cunha Date: Thu, 20 Aug 2009 11:37:46 +0000 Subject: Sync OpenBSD patchset 271: Now that pane targets (-t) are supported, switch some commands to use them where it makes sense: clock-mode, copy-mode, scroll-mode, send-keys, send-prefix. --- cmd-send-prefix.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'cmd-send-prefix.c') diff --git a/cmd-send-prefix.c b/cmd-send-prefix.c index d06833ec..4620e123 100644 --- a/cmd-send-prefix.c +++ b/cmd-send-prefix.c @@ -1,4 +1,4 @@ -/* $Id: cmd-send-prefix.c,v 1.25 2009-07-28 22:12:16 tcunha Exp $ */ +/* $Id: cmd-send-prefix.c,v 1.26 2009-08-20 11:37:46 tcunha Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott @@ -28,7 +28,7 @@ int cmd_send_prefix_exec(struct cmd *, struct cmd_ctx *); const struct cmd_entry cmd_send_prefix_entry = { "send-prefix", NULL, - CMD_TARGET_WINDOW_USAGE, + CMD_TARGET_PANE_USAGE, 0, 0, cmd_target_init, cmd_target_parse, @@ -42,14 +42,14 @@ cmd_send_prefix_exec(struct cmd *self, struct cmd_ctx *ctx) { struct cmd_target_data *data = self->data; struct session *s; - struct winlink *wl; + struct window_pane *wp; int key; - if ((wl = cmd_find_window(ctx, data->target, &s)) == NULL) + if (cmd_find_pane(ctx, data->target, &s, &wp) == NULL) return (-1); key = options_get_number(&s->options, "prefix"); - window_pane_key(wl->window->active, ctx->curclient, key); + window_pane_key(wp, ctx->curclient, key); return (0); } -- cgit