From ea045aaf6a8620938b6ed8eff43ccc393ffd0b49 Mon Sep 17 00:00:00 2001 From: Jakob Kaivo Date: Tue, 14 Jul 2020 10:57:34 -0400 Subject: correct f/b to scroll by screenful without prefix --- more.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'more.c') 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; -- cgit v1.2.1