diff options
author | Jakob Kaivo <jkk@ung.org> | 2020-07-14 10:57:34 -0400 |
---|---|---|
committer | Jakob Kaivo <jkk@ung.org> | 2020-07-14 10:57:34 -0400 |
commit | ea045aaf6a8620938b6ed8eff43ccc393ffd0b49 (patch) | |
tree | 38b9875b628178df1ead123b04726024dd60bcb9 | |
parent | a931ef9bc003edca544d2c40319d2d703b599738 (diff) |
correct f/b to scroll by screenful without prefix
-rw-r--r-- | more.c | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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; |