From f0a3a962dfc70601401a7a59b2c7d1baf75d75a7 Mon Sep 17 00:00:00 2001
From: Kubat <mael.martin31@gmail.com>
Date: Thu, 16 Apr 2020 20:57:22 +0200
Subject: [PATCH] Only positive numbers

---
 src/main/lkt.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/main/lkt.c b/src/main/lkt.c
index 99a92990..17bef1b5 100644
--- a/src/main/lkt.c
+++ b/src/main/lkt.c
@@ -741,6 +741,7 @@ queue_list__(struct lkt_cmd_args *args)
 
     /* Get the content of the queue. */
 
+    continuation = labs(continuation);
     song_index = MAX(song_index + 1, 1);
     snprintf(buff, LKT_MESSAGE_MAX - 1, "%ld:%ld", song_index, song_index + continuation - 1);
     buff[LKT_MESSAGE_MAX - 1] = '\0';
-- 
GitLab