aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjvech <jmvalenciae@unal.edu.co>2022-10-11 21:02:28 -0500
committerjvech <jmvalenciae@unal.edu.co>2022-10-11 21:02:28 -0500
commite199ca83f20740a03d790b46f5d910ea709c8c57 (patch)
treee3d686fa00f1c3cfa991eceef69c59dedb0c7904
parentdb2ddd0b4a9b375ab0cac69cf76feb1177e6ebd6 (diff)
fix: a for loop re-writtenHEADmaster
-rw-r--r--main.c4
1 files changed, 3 insertions, 1 deletions
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;
Feel free to download, copy and edit any repo