summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--apps/bookmark.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/apps/bookmark.c b/apps/bookmark.c
index c999504965..236b2e4cde 100644
--- a/apps/bookmark.c
+++ b/apps/bookmark.c
@@ -627,7 +627,10 @@ static char* select_bookmark(const char* bookmark_file_name)
while(true)
{
if(bookmark_id < 0)
- bookmark_id = bookmark_count -1;
+ {
+ bookmark_id = 0;
+ bookmark_id_prev = -1;
+ }
if(bookmark_id == bookmark_count)
bookmark_id = 0;