summaryrefslogtreecommitdiff
path: root/apps/gui
diff options
context:
space:
mode:
Diffstat (limited to 'apps/gui')
-rw-r--r--apps/gui/list.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/apps/gui/list.c b/apps/gui/list.c
index 743e603a02..b53009a976 100644
--- a/apps/gui/list.c
+++ b/apps/gui/list.c
@@ -300,7 +300,11 @@ void gui_list_select_next(struct gui_list * gui_list)
300 /* When we reach the bottom of the list 300 /* When we reach the bottom of the list
301 * we jump to a new page if there are more items*/ 301 * we jump to a new page if there are more items*/
302 if( item_pos > nb_lines-1 && end_item < gui_list->nb_items ) 302 if( item_pos > nb_lines-1 && end_item < gui_list->nb_items )
303 {
303 gui_list->start_item = gui_list->selected_item; 304 gui_list->start_item = gui_list->selected_item;
305 if ( gui_list->start_item > gui_list->nb_items-nb_lines )
306 gui_list->start_item = gui_list->nb_items-nb_lines;
307 }
304 } 308 }
305 else 309 else
306 { 310 {