mirror of
https://github.com/tmate-io/tmate.git
synced 2024-11-23 08:33:17 +01:00
Reset command timer after this or it gets annoying.
This commit is contained in:
parent
60bfaf5bae
commit
9ab200843e
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user