aboutsummaryrefslogtreecommitdiff
path: root/cmd-clock-mode.c
diff options
context:
space:
mode:
Diffstat (limited to 'cmd-clock-mode.c')
-rw-r--r--cmd-clock-mode.c15
1 files changed, 7 insertions, 8 deletions
diff --git a/cmd-clock-mode.c b/cmd-clock-mode.c
index 4df934f7..0dc151d1 100644
--- a/cmd-clock-mode.c
+++ b/cmd-clock-mode.c
@@ -28,22 +28,21 @@ int cmd_clock_mode_exec(struct cmd *, struct cmd_ctx *);
const struct cmd_entry cmd_clock_mode_entry = {
"clock-mode", NULL,
+ "t:", 0, 0,
CMD_TARGET_PANE_USAGE,
- 0, "",
- cmd_target_init,
- cmd_target_parse,
- cmd_clock_mode_exec,
- cmd_target_free,
- cmd_target_print
+ 0,
+ NULL,
+ NULL,
+ cmd_clock_mode_exec
};
int
cmd_clock_mode_exec(struct cmd *self, struct cmd_ctx *ctx)
{
- struct cmd_target_data *data = self->data;
+ struct args *args = self->args;
struct window_pane *wp;
- if (cmd_find_pane(ctx, data->target, NULL, &wp) == NULL)
+ if (cmd_find_pane(ctx, args_get(args, 't'), NULL, &wp) == NULL)
return (-1);
window_pane_set_mode(wp, &window_clock_mode);