diff options
Diffstat (limited to 'apps/gui/list.c')
-rw-r--r-- | apps/gui/list.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/gui/list.c b/apps/gui/list.c index 640a57fbd3..8ff075da7e 100644 --- a/apps/gui/list.c +++ b/apps/gui/list.c | |||
@@ -686,7 +686,7 @@ bool gui_synclist_do_button(struct gui_synclist * lists, | |||
686 | switch (wrap) | 686 | switch (wrap) |
687 | { | 687 | { |
688 | case LIST_WRAP_ON: | 688 | case LIST_WRAP_ON: |
689 | gui_synclist_limit_scroll(lists, false); | 689 | gui_synclist_limit_scroll(lists, !global_settings.list_wraparound); |
690 | break; | 690 | break; |
691 | case LIST_WRAP_OFF: | 691 | case LIST_WRAP_OFF: |
692 | gui_synclist_limit_scroll(lists, true); | 692 | gui_synclist_limit_scroll(lists, true); |
@@ -697,7 +697,7 @@ bool gui_synclist_do_button(struct gui_synclist * lists, | |||
697 | action == ACTION_LISTTREE_PGUP || | 697 | action == ACTION_LISTTREE_PGUP || |
698 | action == ACTION_LISTTREE_PGDOWN) | 698 | action == ACTION_LISTTREE_PGDOWN) |
699 | gui_synclist_limit_scroll(lists, true); | 699 | gui_synclist_limit_scroll(lists, true); |
700 | else gui_synclist_limit_scroll(lists, false); | 700 | else gui_synclist_limit_scroll(lists, !global_settings.list_wraparound); |
701 | break; | 701 | break; |
702 | }; | 702 | }; |
703 | 703 | ||
@@ -911,7 +911,7 @@ bool simplelist_show_list(struct simplelist_info *info) | |||
911 | struct gui_synclist lists; | 911 | struct gui_synclist lists; |
912 | int action, old_line_count = simplelist_line_count; | 912 | int action, old_line_count = simplelist_line_count; |
913 | list_get_name *getname; | 913 | list_get_name *getname; |
914 | int wrap = LIST_WRAP_UNLESS_HELD; | 914 | int wrap = global_settings.list_wraparound ? LIST_WRAP_UNLESS_HELD : LIST_WRAP_OFF; |
915 | if (info->get_name) | 915 | if (info->get_name) |
916 | getname = info->get_name; | 916 | getname = info->get_name; |
917 | else | 917 | else |