diff options
Diffstat (limited to 'cmd-clock-mode.c')
-rw-r--r-- | cmd-clock-mode.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/cmd-clock-mode.c b/cmd-clock-mode.c index 9c8e72d0..de10833d 100644 --- a/cmd-clock-mode.c +++ b/cmd-clock-mode.c @@ -1,4 +1,4 @@ -/* $Id: cmd-clock-mode.c,v 1.2 2009-01-11 23:31:46 nicm Exp $ */ +/* $Id: cmd-clock-mode.c,v 1.3 2009-01-19 18:23:40 nicm Exp $ */ /* * Copyright (c) 2009 Nicholas Marriott <nicm@users.sourceforge.net> @@ -24,7 +24,7 @@ * Enter clock mode. */ -void cmd_clock_mode_exec(struct cmd *, struct cmd_ctx *); +int cmd_clock_mode_exec(struct cmd *, struct cmd_ctx *); const struct cmd_entry cmd_clock_mode_entry = { "clock-mode", NULL, @@ -39,17 +39,16 @@ const struct cmd_entry cmd_clock_mode_entry = { cmd_target_print }; -void +int cmd_clock_mode_exec(struct cmd *self, struct cmd_ctx *ctx) { struct cmd_target_data *data = self->data; struct winlink *wl; if ((wl = cmd_find_window(ctx, data->target, NULL)) == NULL) - return; + return (-1); window_pane_set_mode(wl->window->active, &window_clock_mode); - if (ctx->cmdclient != NULL) - server_write_client(ctx->cmdclient, MSG_EXIT, NULL, 0); + return (0); } |