diff options
author | Nicholas Marriott <nicholas.marriott@gmail.com> | 2009-01-14 22:13:30 +0000 |
---|---|---|
committer | Nicholas Marriott <nicholas.marriott@gmail.com> | 2009-01-14 22:13:30 +0000 |
commit | 97fef895f25eccb5de4d57eebe241f5ef8a61f51 (patch) | |
tree | 2a55b3626ee26b79b136ef08130931418e518ce3 /key-bindings.c | |
parent | 0a99ba0b30f89388384c58a1188d38cea327b687 (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 'key-bindings.c')
-rw-r--r-- | key-bindings.c | 7 |
1 files changed, 2 insertions, 5 deletions
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 <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; |