Reset command timer after this or it gets annoying.

This commit is contained in:
Nicholas Marriott 2009-01-13 00:48:50 +00:00
parent 60bfaf5bae
commit 9ab200843e

View File

@ -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 <nicm@users.sourceforge.net>
@ -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);
}