diff options
author | nicm <nicm> | 2020-04-13 15:55:51 +0000 |
---|---|---|
committer | nicm <nicm> | 2020-04-13 15:55:51 +0000 |
commit | 3f86d6d46014ca55e42cecd570d7f269b1d386b3 (patch) | |
tree | 94a72dc0995badc04a7471edb4782ce9707a4930 /cfg.c | |
parent | adb76fd1ce8753a958d4ffe14db724f9f4d674ea (diff) | |
download | rtmux-3f86d6d46014ca55e42cecd570d7f269b1d386b3.tar.gz rtmux-3f86d6d46014ca55e42cecd570d7f269b1d386b3.tar.bz2 rtmux-3f86d6d46014ca55e42cecd570d7f269b1d386b3.zip |
When adding a list of commands to the queue, instead of automatically
creating a new state for each group of commands, require the caller to
create one and use it for all the commands in the list. This means the
current target works even with list with multiple groups (which can
happen if they are defined with newlines).
Diffstat (limited to 'cfg.c')
-rw-r--r-- | cfg.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -183,7 +183,7 @@ load_cfg(const char *path, struct client *c, struct cmdq_item *item, int flags, return (0); } - new_item0 = cmdq_get_command(pr->cmdlist, NULL, NULL, 0); + new_item0 = cmdq_get_command(pr->cmdlist, NULL); if (item != NULL) new_item0 = cmdq_insert_after(item, new_item0); else @@ -229,7 +229,7 @@ load_cfg_from_buffer(const void *buf, size_t len, const char *path, return (0); } - new_item0 = cmdq_get_command(pr->cmdlist, NULL, NULL, 0); + new_item0 = cmdq_get_command(pr->cmdlist, NULL); if (item != NULL) new_item0 = cmdq_insert_after(item, new_item0); else |