From 97fef895f25eccb5de4d57eebe241f5ef8a61f51 Mon Sep 17 00:00:00 2001 From: Nicholas Marriott Date: Wed, 14 Jan 2009 22:13:30 +0000 Subject: 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. --- cmd-send-prefix.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'cmd-send-prefix.c') 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 @@ -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); } -- cgit v1.2.3