diff options
Diffstat (limited to 'apps/plugins/viewer.c')
-rw-r--r-- | apps/plugins/viewer.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/apps/plugins/viewer.c b/apps/plugins/viewer.c index ebda4bd7b3..dcd49f806d 100644 --- a/apps/plugins/viewer.c +++ b/apps/plugins/viewer.c | |||
@@ -1268,6 +1268,11 @@ static void viewer_scroll_down(bool autoscroll) | |||
1268 | 1268 | ||
1269 | if (prefs.scroll_mode == LINE || autoscroll) | 1269 | if (prefs.scroll_mode == LINE || autoscroll) |
1270 | increment_current_line(); | 1270 | increment_current_line(); |
1271 | cline++; | ||
1272 | if (cline > display_lines) { | ||
1273 | cline = 1; | ||
1274 | cpage++; | ||
1275 | } | ||
1271 | } | 1276 | } |
1272 | 1277 | ||
1273 | static void viewer_scroll_to_top_line(void) | 1278 | static void viewer_scroll_to_top_line(void) |