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.

This commit is contained in:
Nicholas Marriott
2009-01-14 22:13:30 +00:00
parent 0a99ba0b30
commit 97fef895f2
14 changed files with 87 additions and 62 deletions

View File

@ -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 <nicm@users.sourceforge.net>
@ -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;