From 9074802f9742dd97c54225d58edfc9f5573835ad Mon Sep 17 00:00:00 2001 From: Nicholas Marriott Date: Thu, 9 May 2019 13:13:00 +0000 Subject: send-keys also needs to insert key commands in the right order. --- usr.bin/tmux/key-bindings.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'usr.bin/tmux/key-bindings.c') diff --git a/usr.bin/tmux/key-bindings.c b/usr.bin/tmux/key-bindings.c index 79db69a2e3f..c484f2301c2 100644 --- a/usr.bin/tmux/key-bindings.c +++ b/usr.bin/tmux/key-bindings.c @@ -1,4 +1,4 @@ -/* $OpenBSD: key-bindings.c,v 1.89 2019/04/29 06:55:21 nicm Exp $ */ +/* $OpenBSD: key-bindings.c,v 1.90 2019/05/09 13:12:59 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott @@ -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 v1.2.3