diff options
Diffstat (limited to 'apps/plugins/text_viewer/text_viewer.c')
-rw-r--r-- | apps/plugins/text_viewer/text_viewer.c | 32 |
1 files changed, 20 insertions, 12 deletions
diff --git a/apps/plugins/text_viewer/text_viewer.c b/apps/plugins/text_viewer/text_viewer.c index ea8972491b..fae2f071aa 100644 --- a/apps/plugins/text_viewer/text_viewer.c +++ b/apps/plugins/text_viewer/text_viewer.c | |||
@@ -114,12 +114,16 @@ enum plugin_status plugin_start(const void* file) | |||
114 | tv_scroll_left(TV_HORIZONTAL_SCROLL_PREFS); | 114 | tv_scroll_left(TV_HORIZONTAL_SCROLL_PREFS); |
115 | } | 115 | } |
116 | else { /* prefs->windows == 1 */ | 116 | else { /* prefs->windows == 1 */ |
117 | /* scroll to previous page */ | 117 | if (prefs->narrow_mode == NM_PAGE) |
118 | tv_scroll_up(TV_VERTICAL_SCROLL_PAGE); | 118 | { |
119 | #if 0 | 119 | /* scroll to previous page */ |
120 | /* Top of file */ | 120 | tv_scroll_up(TV_VERTICAL_SCROLL_PAGE); |
121 | tv_top(); | 121 | } |
122 | #endif | 122 | else |
123 | { | ||
124 | /* Top of file */ | ||
125 | tv_top(); | ||
126 | } | ||
123 | } | 127 | } |
124 | break; | 128 | break; |
125 | 129 | ||
@@ -131,12 +135,16 @@ enum plugin_status plugin_start(const void* file) | |||
131 | tv_scroll_right(TV_HORIZONTAL_SCROLL_PREFS); | 135 | tv_scroll_right(TV_HORIZONTAL_SCROLL_PREFS); |
132 | } | 136 | } |
133 | else { /* prefs->windows == 1 */ | 137 | else { /* prefs->windows == 1 */ |
134 | /* scroll to next page */ | 138 | if (prefs->narrow_mode == NM_PAGE) |
135 | tv_scroll_down(TV_VERTICAL_SCROLL_PAGE); | 139 | { |
136 | #if 0 | 140 | /* scroll to next page */ |
137 | /* Bottom of file */ | 141 | tv_scroll_down(TV_VERTICAL_SCROLL_PAGE); |
138 | tv_bottom(); | 142 | } |
139 | #endif | 143 | else |
144 | { | ||
145 | /* Bottom of file */ | ||
146 | tv_bottom(); | ||
147 | } | ||
140 | } | 148 | } |
141 | break; | 149 | break; |
142 | 150 | ||