Don't remove group items for group 0 (no group).

pull/1758/head
nicm 2019-05-23 13:08:43 +00:00
parent a4fe7e81c8
commit 3e3eb1dd0f
1 changed files with 2 additions and 0 deletions

View File

@ -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);