diff options
author | nicm <nicm> | 2019-12-19 09:22:33 +0000 |
---|---|---|
committer | nicm <nicm> | 2019-12-19 09:22:33 +0000 |
commit | 1764f66b7d1ed0e494cfa8967c78ace8728ee86c (patch) | |
tree | 84e6483ab9ec00b4f22e61d764b866562ac6e0d8 /tmux.h | |
parent | ef54a08080ef7d721d05361bf10e27217c87590e (diff) | |
download | rtmux-1764f66b7d1ed0e494cfa8967c78ace8728ee86c.tar.gz rtmux-1764f66b7d1ed0e494cfa8967c78ace8728ee86c.tar.bz2 rtmux-1764f66b7d1ed0e494cfa8967c78ace8728ee86c.zip |
When adding a list with multiple commands to the queue, the next item to
insert after needs to be the last one added, not the first. Reported by
Jason Kim in GitHub issue 2023.
Diffstat (limited to 'tmux.h')
-rw-r--r-- | tmux.h | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -2134,8 +2134,8 @@ struct cmdq_item *cmdq_get_command(struct cmd_list *, struct cmd_find_state *, #define cmdq_get_callback(cb, data) cmdq_get_callback1(#cb, cb, data) struct cmdq_item *cmdq_get_callback1(const char *, cmdq_cb, void *); struct cmdq_item *cmdq_get_error(const char *); -void cmdq_insert_after(struct cmdq_item *, struct cmdq_item *); -void cmdq_append(struct client *, struct cmdq_item *); +struct cmdq_item *cmdq_insert_after(struct cmdq_item *, struct cmdq_item *); +struct cmdq_item *cmdq_append(struct client *, struct cmdq_item *); void cmdq_insert_hook(struct session *, struct cmdq_item *, struct cmd_find_state *, const char *, ...); void cmdq_continue(struct cmdq_item *); |