summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--apps/plugins/viewer.c28
1 files changed, 14 insertions, 14 deletions
diff --git a/apps/plugins/viewer.c b/apps/plugins/viewer.c
index 73621c1579..6822f73868 100644
--- a/apps/plugins/viewer.c
+++ b/apps/plugins/viewer.c
@@ -974,8 +974,8 @@ static int col_limit(int col)
974static bool word_wrap_setting(void) 974static bool word_wrap_setting(void)
975{ 975{
976 static const struct opt_items names[] = { 976 static const struct opt_items names[] = {
977 {"On", NULL}, 977 {"On", -1},
978 {"Off (Chop Words)", NULL}, 978 {"Off (Chop Words)", -1},
979 }; 979 };
980 980
981 return rb->set_option("Word Wrap", &prefs.word_mode, INT, 981 return rb->set_option("Word Wrap", &prefs.word_mode, INT,
@@ -985,11 +985,11 @@ static bool word_wrap_setting(void)
985static bool line_mode_setting(void) 985static bool line_mode_setting(void)
986{ 986{
987 static const struct opt_items names[] = { 987 static const struct opt_items names[] = {
988 {"Normal", NULL}, 988 {"Normal", -1},
989 {"Join Lines", NULL}, 989 {"Join Lines", -1},
990 {"Expand Lines", NULL}, 990 {"Expand Lines", -1},
991#ifdef HAVE_LCD_BITMAP 991#ifdef HAVE_LCD_BITMAP
992 {"Reflow Lines", NULL}, 992 {"Reflow Lines", -1},
993#endif 993#endif
994 }; 994 };
995 995
@@ -1000,8 +1000,8 @@ static bool line_mode_setting(void)
1000static bool view_mode_setting(void) 1000static bool view_mode_setting(void)
1001{ 1001{
1002 static const struct opt_items names[] = { 1002 static const struct opt_items names[] = {
1003 {"No (Narrow)", NULL}, 1003 {"No (Narrow)", -1},
1004 {"Yes", NULL}, 1004 {"Yes", -1},
1005 }; 1005 };
1006 1006
1007 return rb->set_option("Wide View", &prefs.view_mode, INT, 1007 return rb->set_option("Wide View", &prefs.view_mode, INT,
@@ -1011,8 +1011,8 @@ static bool view_mode_setting(void)
1011static bool scroll_mode_setting(void) 1011static bool scroll_mode_setting(void)
1012{ 1012{
1013 static const struct opt_items names[] = { 1013 static const struct opt_items names[] = {
1014 {"Scroll by Page", NULL}, 1014 {"Scroll by Page", -1},
1015 {"Scroll by Line", NULL}, 1015 {"Scroll by Line", -1},
1016 }; 1016 };
1017 1017
1018 return rb->set_option("Scroll Mode", &prefs.scroll_mode, INT, 1018 return rb->set_option("Scroll Mode", &prefs.scroll_mode, INT,
@@ -1023,8 +1023,8 @@ static bool scroll_mode_setting(void)
1023static bool page_mode_setting(void) 1023static bool page_mode_setting(void)
1024{ 1024{
1025 static const struct opt_items names[] = { 1025 static const struct opt_items names[] = {
1026 {"No", NULL}, 1026 {"No", -1},
1027 {"Yes", NULL}, 1027 {"Yes", -1},
1028 }; 1028 };
1029 1029
1030 return rb->set_option("Overlap Pages", &prefs.page_mode, INT, 1030 return rb->set_option("Overlap Pages", &prefs.page_mode, INT,
@@ -1034,8 +1034,8 @@ static bool page_mode_setting(void)
1034static bool scrollbar_setting(void) 1034static bool scrollbar_setting(void)
1035{ 1035{
1036 static const struct opt_items names[] = { 1036 static const struct opt_items names[] = {
1037 {"Off", NULL}, 1037 {"Off", -1},
1038 {"On", NULL} 1038 {"On", -1}
1039 }; 1039 };
1040 1040
1041 return rb->set_option("Show Scrollbar", &prefs.scrollbar_mode, INT, 1041 return rb->set_option("Show Scrollbar", &prefs.scrollbar_mode, INT,