summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
Diffstat (limited to 'apps')
-rw-r--r--apps/tree.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/tree.c b/apps/tree.c
index d8270e3268..dc39b726ca 100644
--- a/apps/tree.c
+++ b/apps/tree.c
@@ -413,7 +413,7 @@ bool dirbrowse(char *root)
413 if (start) { 413 if (start) {
414 /* leaving the cursor at top line and moving screen down */ 414 /* leaving the cursor at top line and moving screen down */
415 if (browse_speed >=TREE_MAX_ON_SCREEN-1) 415 if (browse_speed >=TREE_MAX_ON_SCREEN-1)
416 start = start - TREE_MAX_ON_SCREEN - 1; 416 start = start - TREE_MAX_ON_SCREEN + 1;
417 else 417 else
418 start--; 418 start--;
419 if (start<0) 419 if (start<0)