summaryrefslogtreecommitdiffstats
path: root/cmd-send-prefix.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicholas.marriott@gmail.com>2009-01-14 22:13:30 +0000
committerNicholas Marriott <nicholas.marriott@gmail.com>2009-01-14 22:13:30 +0000
commit97fef895f25eccb5de4d57eebe241f5ef8a61f51 (patch)
tree2a55b3626ee26b79b136ef08130931418e518ce3 /cmd-send-prefix.c
parent0a99ba0b30f89388384c58a1188d38cea327b687 (diff)
Rework the prefix-time stuff. The option is now call repeat-time and defaults to 500 ms. However, it only applies to a small subset of commands, currently: up-pane, down-pane, next-window, previous-window, resize-pane-up, resize-pane-down. These are the commands for which it is obviously useful, having it for everything else was just bloody annoying.
Diffstat (limited to 'cmd-send-prefix.c')
-rw-r--r--cmd-send-prefix.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/cmd-send-prefix.c b/cmd-send-prefix.c
index 76ccedd9..26cdd6cc 100644
--- a/cmd-send-prefix.c
+++ b/cmd-send-prefix.c
@@ -1,4 +1,4 @@
-/* $Id: cmd-send-prefix.c,v 1.21 2009-01-13 00:48:50 nicm Exp $ */
+/* $Id: cmd-send-prefix.c,v 1.22 2009-01-14 22:13:30 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -53,12 +53,6 @@ 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);
}