summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakob Kaivo <jkk@ung.org>2020-07-14 10:57:34 -0400
committerJakob Kaivo <jkk@ung.org>2020-07-14 10:57:34 -0400
commitea045aaf6a8620938b6ed8eff43ccc393ffd0b49 (patch)
tree38b9875b628178df1ead123b04726024dd60bcb9
parenta931ef9bc003edca544d2c40319d2d703b599738 (diff)
correct f/b to scroll by screenful without prefix
-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;