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. --- key-bindings.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'key-bindings.c') diff --git a/key-bindings.c b/key-bindings.c index d7961bfe..0c4b330c 100644 --- a/key-bindings.c +++ b/key-bindings.c @@ -1,4 +1,4 @@ -/* $Id: key-bindings.c,v 1.49 2009-01-14 21:08:52 nicm Exp $ */ +/* $Id: key-bindings.c,v 1.50 2009-01-14 22:13:30 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott @@ -191,14 +191,11 @@ key_bindings_info(struct cmd_ctx *ctx, const char *fmt, ...) } void -key_bindings_dispatch(int key, struct client *c) +key_bindings_dispatch(struct key_binding *bd, struct client *c) { struct cmd_ctx ctx; struct key_binding *bd; - if ((bd = key_bindings_lookup(key)) == NULL) - return; - ctx.msgdata = NULL; ctx.cursession = c->session; ctx.curclient = c; -- cgit