From 21d97504505f2310c5d065e06d3c550d7b5d9f89 Mon Sep 17 00:00:00 2001 From: nicm Date: Thu, 9 May 2019 13:12:59 +0000 Subject: send-keys also needs to insert key commands in the right order. --- key-bindings.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'key-bindings.c') 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); } -- cgit