aboutsummaryrefslogtreecommitdiff
path: root/key-bindings.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicholas.marriott@gmail.com>2017-02-07 13:41:17 +0000
committerNicholas Marriott <nicholas.marriott@gmail.com>2017-02-07 13:41:17 +0000
commit8872a0da8e9588b0ec5eac1a1cc3753037ed68e1 (patch)
tree5c21a56f80ffeed5c2c1edadb7b1b73873026a3a /key-bindings.c
parent0f5a2c86da5cf2cf024b0653fb84f2dc69c246a2 (diff)
parent9f66fb4fd779640c214df812afcdc0840d851c53 (diff)
downloadrtmux-8872a0da8e9588b0ec5eac1a1cc3753037ed68e1.tar.gz
rtmux-8872a0da8e9588b0ec5eac1a1cc3753037ed68e1.tar.bz2
rtmux-8872a0da8e9588b0ec5eac1a1cc3753037ed68e1.zip
Merge branch 'master' of github.com:tmux/tmux
Diffstat (limited to 'key-bindings.c')
-rw-r--r--key-bindings.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/key-bindings.c b/key-bindings.c
index 4cbb34ec..d96b51f6 100644
--- a/key-bindings.c
+++ b/key-bindings.c
@@ -400,8 +400,9 @@ void
key_bindings_dispatch(struct key_binding *bd, struct client *c,
struct mouse_event *m, struct cmd_find_state *fs)
{
- struct cmd *cmd;
- int readonly;
+ struct cmd *cmd;
+ struct cmdq_item *item;
+ int readonly;
readonly = 1;
TAILQ_FOREACH(cmd, &bd->cmdlist->list, qentry) {
@@ -410,6 +411,9 @@ key_bindings_dispatch(struct key_binding *bd, struct client *c,
}
if (!readonly && (c->flags & CLIENT_READONLY))
cmdq_append(c, cmdq_get_callback(key_bindings_read_only, NULL));
- else
- cmdq_append(c, cmdq_get_command(bd->cmdlist, fs, m, 0));
+ else {
+ item = cmdq_get_command(bd->cmdlist, fs, m, 0);
+ item->repeat = bd->can_repeat;
+ cmdq_append(c, item);
+ }
}