From 7d702f3cef4c75130ad78ab2158fa1aac45b7ea1 Mon Sep 17 00:00:00 2001 From: nicm Date: Thu, 23 May 2019 13:08:43 +0000 Subject: [PATCH] Don't remove group items for group 0 (no group). --- cmd-queue.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cmd-queue.c b/cmd-queue.c index c343a212..0cfa57fe 100644 --- a/cmd-queue.c +++ b/cmd-queue.c @@ -181,6 +181,8 @@ cmdq_remove_group(struct cmdq_item *item) { struct cmdq_item *this, *next; + if (item->group == 0) + return; this = TAILQ_NEXT(item, entry); while (this != NULL) { next = TAILQ_NEXT(this, entry);