commit 6e27da927cbf09b459ac8967db4dc955ace1715a
parent 8d1ae8fdc51355243f996b3c068976d82acb4faf
Author: Jacob R. Edwards <jacob@jacobedwards.org>
Date: Sun, 4 Jun 2023 20:31:32 -0700
Make the remove command more uniform
Return the item removed--the curent item--even when no arguments
are given.
Diffstat:
1 file changed, 2 insertions(+), 0 deletions(-)
diff --git a/aps/command.c b/aps/command.c
@@ -58,6 +58,8 @@ com_remove(struct aps *aps, int fd, int argc, char **argv)
char *err;
if (!argc) {
+ if (aps_bufline(aps, fd, aps->queue->path))
+ return errstr;
queue_remove(aps, aps->queue);
return NULL;
}