Skip to content

Commit

Permalink
Fix file selector disappearing in large directory
Browse files Browse the repository at this point in the history
This fixes issue #27.

Signed-off-by: Mahyar Koshkouei <deltabeard@users.noreply.github.com>
  • Loading branch information
deltabeard committed Jan 13, 2017
1 parent e573b49 commit 11b16f1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion source/main.c
Expand Up @@ -85,7 +85,8 @@ int main(int argc, char **argv)

fileNum--;

if(fileMax - fileNum >= from && from != 0)
/* 26 is the maximum number of entries that can be printed */
if(fileMax - fileNum > 26 && from != 0)
from--;

mill = osGetTime();
Expand Down

0 comments on commit 11b16f1

Please sign in to comment.