Fix file selector disappearing in large directory

This fixes issue #27.

Signed-off-by: Mahyar Koshkouei <deltabeard@users.noreply.github.com>
This commit is contained in:
Mahyar Koshkouei
2017-01-13 22:24:08 +00:00
parent e573b497eb
commit 11b16f1cd0

View File

@@ -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();