summaryrefslogtreecommitdiffstats
path: root/cmd-confirm-before.c
diff options
context:
space:
mode:
authornicm <nicm>2020-04-13 15:55:51 +0000
committernicm <nicm>2020-04-13 15:55:51 +0000
commit3f86d6d46014ca55e42cecd570d7f269b1d386b3 (patch)
tree94a72dc0995badc04a7471edb4782ce9707a4930 /cmd-confirm-before.c
parentadb76fd1ce8753a958d4ffe14db724f9f4d674ea (diff)
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 'cmd-confirm-before.c')
-rw-r--r--cmd-confirm-before.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd-confirm-before.c b/cmd-confirm-before.c
index 419efda5..7850706e 100644
--- a/cmd-confirm-before.c
+++ b/cmd-confirm-before.c
@@ -109,7 +109,7 @@ cmd_confirm_before_callback(struct client *c, void *data, const char *s,
cmdq_append(c, new_item);
break;
case CMD_PARSE_SUCCESS:
- new_item = cmdq_get_command(pr->cmdlist, NULL, NULL, 0);
+ new_item = cmdq_get_command(pr->cmdlist, NULL);
cmd_list_free(pr->cmdlist);
cmdq_append(c, new_item);
break;