From e199ca83f20740a03d790b46f5d910ea709c8c57 Mon Sep 17 00:00:00 2001 From: jvech Date: Tue, 11 Oct 2022 21:02:28 -0500 Subject: fix: a for loop re-written --- main.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/main.c b/main.c index 6da1773..d40f334 100644 --- a/main.c +++ b/main.c @@ -144,7 +144,9 @@ void draw_options(list *videos, int video_index, int length) clear(); move(0, 0); i = (video_index/ymax) * ymax; - for (i = (video_index/ymax) * ymax; i <= length && getcury(stdscr) < ymax - 1; i++) { + for (i = (video_index/ymax) * ymax; + i <= length && getcury(stdscr) < ymax - 1; + i++) { if (i == video_index) attron(A_REVERSE); else attroff(A_REVERSE); if (!i) continue; -- cgit v1.2.3-70-g09d2