summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--more.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/more.c b/more.c
index 7f64742..c3b08eb 100644
--- a/more.c
+++ b/more.c
@@ -161,11 +161,17 @@ int more(const char *file)
case 'f':
case CTRL_F:
+ if (count == 0) {
+ count = global.lines;
+ }
scroll(&mf, count, 1);
break;
case 'b':
case CTRL_B:
+ if (count == 0) {
+ count = global.lines;
+ }
scroll(&mf, count, -1);
break;