diff options
author | Thomas Adam <thomas@xteddy.org> | 2017-02-06 16:01:20 +0000 |
---|---|---|
committer | Thomas Adam <thomas@xteddy.org> | 2017-02-06 16:01:20 +0000 |
commit | 1199f8fc59f34f474672cb95a781d3a817d05242 (patch) | |
tree | e80c8148f42a83050e763abe017017eb73cad2f7 /key-bindings.c | |
parent | 446177a8326d6d29591c1e42ec44d0f92e39c466 (diff) | |
parent | e67548dc36fdb4454aded1c95bd35e2443191f94 (diff) | |
download | rtmux-1199f8fc59f34f474672cb95a781d3a817d05242.tar.gz rtmux-1199f8fc59f34f474672cb95a781d3a817d05242.tar.bz2 rtmux-1199f8fc59f34f474672cb95a781d3a817d05242.zip |
Merge branch 'obsd-master'
Diffstat (limited to 'key-bindings.c')
-rw-r--r-- | key-bindings.c | 12 |
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); + } } |