diff --git a/cmd-send-prefix.c b/cmd-send-prefix.c index 2d17bea1..76ccedd9 100644 --- a/cmd-send-prefix.c +++ b/cmd-send-prefix.c @@ -1,4 +1,4 @@ -/* $Id: cmd-send-prefix.c,v 1.20 2009-01-11 23:31:46 nicm Exp $ */ +/* $Id: cmd-send-prefix.c,v 1.21 2009-01-13 00:48:50 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott @@ -53,6 +53,12 @@ cmd_send_prefix_exec(struct cmd *self, struct cmd_ctx *ctx) key = options_get_number(&s->options, "prefix"); window_pane_key(wl->window->active, ctx->curclient, key); + /* Don't want this to be repeated so reset command timer. */ + if (ctx->curclient != NULL) { + if (gettimeofday(&ctx->curclient->command_timer, NULL) != 0) + fatal("gettimeofday"); + } + if (ctx->cmdclient != NULL) server_write_client(ctx->cmdclient, MSG_EXIT, NULL, 0); }