summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--apps/tree.c6
-rw-r--r--docs/CREDITS1
2 files changed, 7 insertions, 0 deletions
diff --git a/apps/tree.c b/apps/tree.c
index be4edf7065..66a163ab8e 100644
--- a/apps/tree.c
+++ b/apps/tree.c
@@ -896,6 +896,8 @@ static bool dirbrowse(void)
restore = true;
}
else {
+ if (button & BUTTON_REPEAT)
+ break;
if (numentries < tree_max_on_screen) {
put_cursorxy(CURSOR_X, CURSOR_Y + tc.dircursor,
false);
@@ -950,6 +952,8 @@ static bool dirbrowse(void)
else if (id3db && (tc.firstpos || tc.dirfull)) {
if (tc.dircursor + tc.dirstart + tc.firstpos + 1 >= tc.dirlength) {
/* wrap and load first dir segment */
+ if (button & BUTTON_REPEAT)
+ break;
tc.firstpos = tc.dirstart = tc.dircursor = 0;
}
else {
@@ -960,6 +964,8 @@ static bool dirbrowse(void)
restore = true;
}
else {
+ if (button & BUTTON_REPEAT)
+ break;
if(numentries < tree_max_on_screen) {
put_cursorxy(CURSOR_X, CURSOR_Y + tc.dircursor, false);
tc.dirstart = tc.dircursor = 0;
diff --git a/docs/CREDITS b/docs/CREDITS
index 93a2533191..5d3c845cf3 100644
--- a/docs/CREDITS
+++ b/docs/CREDITS
@@ -120,3 +120,4 @@ Pedro Baltazar Vasconcelos
Ray Lambert
Dave Wiard
Pieter Bos
+Konstantin Isakov