ap

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

commit 0df0b31927f2b0f385612d966309bc39d55af8bf
parent 4a4a63b1561cd5e3292cce6235c1b3f9a11c0754
Author: Jacob R. Edwards <n/a>
Date:   Mon, 26 Dec 2022 16:58:48 -0800

Show what has been removed in the remove command

While there are often times when you don't want or need this
information, it can also be extremely useful. As I don't want to
add flags or a whole new command to allow both the new and old
behavior, it will simply always show what has been removed.

One good use of this new behavior is in reordering the queue.

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

diff --git a/aps/command.c b/aps/command.c @@ -67,6 +67,8 @@ com_remove(struct aps *aps, int fd, int argc, char **argv) return err; while ((item = findnext(&search))) { + if (aps_bufline(aps, fd, item->path)) + return errstr; if (item == aps->queue) { item = queue_remove(aps, item); } else {