From 1764f66b7d1ed0e494cfa8967c78ace8728ee86c Mon Sep 17 00:00:00 2001 From: nicm Date: Thu, 19 Dec 2019 09:22:33 +0000 Subject: 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. --- cmd-source-file.c | 1 + 1 file changed, 1 insertion(+) (limited to 'cmd-source-file.c') diff --git a/cmd-source-file.c b/cmd-source-file.c index 6af1a6d0..c34cdf41 100644 --- a/cmd-source-file.c +++ b/cmd-source-file.c @@ -114,6 +114,7 @@ cmd_source_file_done(struct client *c, const char *path, int error, static void cmd_source_file_add(struct cmd_source_file_data *cdata, const char *path) { + log_debug("%s: %s", __func__, path); cdata->files = xreallocarray(cdata->files, cdata->nfiles + 1, sizeof *cdata->files); cdata->files[cdata->nfiles++] = xstrdup(path); -- cgit