diff options
author | Nicholas Marriott <nicholas.marriott@gmail.com> | 2009-01-13 00:48:50 +0000 |
---|---|---|
committer | Nicholas Marriott <nicholas.marriott@gmail.com> | 2009-01-13 00:48:50 +0000 |
commit | 9ab200843e7f2167129cacfe83aeca6a502a374e (patch) | |
tree | d261c2d516004d8cec572eb45aad470f8917c0bd /cmd-send-prefix.c | |
parent | 60bfaf5baef7872c6e6e57ac33cf928afd198a55 (diff) |
Reset command timer after this or it gets annoying.
Diffstat (limited to 'cmd-send-prefix.c')
-rw-r--r-- | cmd-send-prefix.c | 8 |
1 files changed, 7 insertions, 1 deletions
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 <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); } |