From 145ba777e8ad6cca977e6b310de15145e4f1c321 Mon Sep 17 00:00:00 2001 From: Nicholas Marriott Date: Tue, 18 Aug 2009 16:21:04 +0000 Subject: 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-clock-mode.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'cmd-clock-mode.c') diff --git a/cmd-clock-mode.c b/cmd-clock-mode.c index 0fc43a54..b1f135a6 100644 --- a/cmd-clock-mode.c +++ b/cmd-clock-mode.c @@ -28,7 +28,7 @@ int cmd_clock_mode_exec(struct cmd *, struct cmd_ctx *); const struct cmd_entry cmd_clock_mode_entry = { "clock-mode", NULL, - CMD_TARGET_WINDOW_USAGE, + CMD_TARGET_PANE_USAGE, 0, 0, cmd_target_init, cmd_target_parse, @@ -41,12 +41,12 @@ int cmd_clock_mode_exec(struct cmd *self, struct cmd_ctx *ctx) { struct cmd_target_data *data = self->data; - struct winlink *wl; + struct window_pane *wp; - if ((wl = cmd_find_window(ctx, data->target, NULL)) == NULL) + if (cmd_find_pane(ctx, data->target, NULL, &wp) == NULL) return (-1); - window_pane_set_mode(wl->window->active, &window_clock_mode); + window_pane_set_mode(wp, &window_clock_mode); return (0); } -- cgit