diff options
Diffstat (limited to 'main.c')
-rw-r--r-- | main.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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; |