From 22eb6797b1556bcdd8beaddc30ac822d2865f941 Mon Sep 17 00:00:00 2001 From: jfreegman Date: Thu, 10 Mar 2022 22:06:01 -0500 Subject: [PATCH] Fix another group peerlist scrolling bug --- src/groupchats.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/groupchats.c b/src/groupchats.c index fc203f4..c31a310 100644 --- a/src/groupchats.c +++ b/src/groupchats.c @@ -1677,7 +1677,7 @@ static void groupchat_onDraw(ToxWindow *self, Tox *m) const uint32_t start = chat->side_pos; pthread_mutex_unlock(&Winthread.lock); - for (uint32_t i = start; i < max_idx && i < maxlines; ++i) { + for (uint32_t i = start; i < max_idx && offset < maxlines; ++i) { pthread_mutex_lock(&Winthread.lock); if (!chat->peer_list[i].active) {