summaryrefslogtreecommitdiffstats
path: root/key-bindings.c
diff options
context:
space:
mode:
authornicm <nicm>2019-05-09 13:12:59 +0000
committernicm <nicm>2019-05-09 13:12:59 +0000
commit21d97504505f2310c5d065e06d3c550d7b5d9f89 (patch)
tree066bce6c32d07a9470dea9949a5a6d2a0e1cc882 /key-bindings.c
parent3c68e51609d35189e46d9b14c2a489a5ca3de67e (diff)
send-keys also needs to insert key commands in the right order.
Diffstat (limited to 'key-bindings.c')
-rw-r--r--key-bindings.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/key-bindings.c b/key-bindings.c
index 5af8f3ed..4d5f7278 100644
--- a/key-bindings.c
+++ b/key-bindings.c
@@ -448,7 +448,7 @@ key_bindings_read_only(struct cmdq_item *item, __unused void *data)
return (CMD_RETURN_ERROR);
}
-void
+struct cmdq_item *
key_bindings_dispatch(struct key_binding *bd, struct cmdq_item *item,
struct client *c, struct mouse_event *m, struct cmd_find_state *fs)
{
@@ -472,4 +472,5 @@ key_bindings_dispatch(struct key_binding *bd, struct cmdq_item *item,
cmdq_insert_after(item, new_item);
else
cmdq_append(c, new_item);
+ return (new_item);
}