ap

An audio player suited to my tastes
Log | Files | Refs | README | LICENSE

commit 3b7ac14952496a2007ca69aaa992f1d78f47bb9c
parent eb3e2c3754fc1aee0454a7807637aeb14182e70b
Author: Jacob R. Edwards <jacobouno@protonmail.com>
Date:   Fri, 18 Jun 2021 10:32:01 -0700

Fix removal of the current item from the queue

Diffstat:
Mqueue.c | 2++
1 file changed, 2 insertions(+), 0 deletions(-)

diff --git a/queue.c b/queue.c @@ -111,6 +111,8 @@ queue_remove(struct queue *q, struct item *item) q->head = item->next; if (q->tail == item) q->tail = item->prev; + if (q->pos == item) + q->pos = item->prev ? item->prev : item->next; if (item->prev) item->prev->next = item->next; if (item->next)