aboutsummaryrefslogtreecommitdiff
path: root/cmd-clock-mode.c
diff options
context:
space:
mode:
authorTiago Cunha <tcunha@gmx.com>2009-08-20 11:37:46 +0000
committerTiago Cunha <tcunha@gmx.com>2009-08-20 11:37:46 +0000
commit36475f80e9885588ed6a67f762289f7e56add84f (patch)
tree9c324b1f01c8b0765d48b114402828453fc5d892 /cmd-clock-mode.c
parent52b02850ca960f5f540176036200a83ca73f1267 (diff)
downloadrtmux-36475f80e9885588ed6a67f762289f7e56add84f.tar.gz
rtmux-36475f80e9885588ed6a67f762289f7e56add84f.tar.bz2
rtmux-36475f80e9885588ed6a67f762289f7e56add84f.zip
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.
Diffstat (limited to 'cmd-clock-mode.c')
-rw-r--r--cmd-clock-mode.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/cmd-clock-mode.c b/cmd-clock-mode.c
index fd29bf97..037cee3a 100644
--- a/cmd-clock-mode.c
+++ b/cmd-clock-mode.c
@@ -1,4 +1,4 @@
-/* $Id: cmd-clock-mode.c,v 1.5 2009-07-28 22:12:16 tcunha Exp $ */
+/* $Id: cmd-clock-mode.c,v 1.6 2009-08-20 11:37:46 tcunha Exp $ */
/*
* Copyright (c) 2009 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -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);
}