diff options
author | Nicholas Marriott <nicholas.marriott@gmail.com> | 2009-03-28 14:08:09 +0000 |
---|---|---|
committer | Nicholas Marriott <nicholas.marriott@gmail.com> | 2009-03-28 14:08:09 +0000 |
commit | cb2ac5c269d42d1f95e6dc6e5585c4ac01a360e4 (patch) | |
tree | 073904bbde12e7de88bf481cb50ca29436251a89 /tmux.h | |
parent | 587badecdb4eed64835e076a589631ceda3bcae5 (diff) | |
download | rtmux-cb2ac5c269d42d1f95e6dc6e5585c4ac01a360e4.tar.gz rtmux-cb2ac5c269d42d1f95e6dc6e5585c4ac01a360e4.tar.bz2 rtmux-cb2ac5c269d42d1f95e6dc6e5585c4ac01a360e4.zip |
Key repeating is now a property of the key binding not of the command. Repeat
is turned on when the key is bound with the -r flag to bind-key. next/previous-
window no longer repeat by default as it turned out to annoy me.
Diffstat (limited to 'tmux.h')
-rw-r--r-- | tmux.h | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -1,4 +1,4 @@ -/* $Id: tmux.h,v 1.285 2009-03-28 10:15:01 nicm Exp $ */ +/* $Id: tmux.h,v 1.286 2009-03-28 14:08:09 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net> @@ -888,7 +888,6 @@ struct cmd_entry { #define CMD_CANTNEST 0x2 #define CMD_ARG1 0x4 #define CMD_ARG01 0x8 -#define CMD_CANREPEAT 0x10 #define CMD_KFLAG 0x10 #define CMD_DFLAG 0x20 #define CMD_GFLAG 0x40 @@ -944,6 +943,7 @@ struct cmd_pane_data { struct key_binding { int key; struct cmd_list *cmdlist; + int can_repeat; SPLAY_ENTRY(key_binding) entry; }; @@ -1291,7 +1291,7 @@ extern struct key_bindings key_bindings; int key_bindings_cmp(struct key_binding *, struct key_binding *); SPLAY_PROTOTYPE(key_bindings, key_binding, entry, key_bindings_cmp); struct key_binding *key_bindings_lookup(int); -void key_bindings_add(int, struct cmd_list *); +void key_bindings_add(int, int, struct cmd_list *); void key_bindings_remove(int); void key_bindings_init(void); void key_bindings_free(void); |