summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--more.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/more.c b/more.c
index ffca1cc..19a4ac2 100644
--- a/more.c
+++ b/more.c
@@ -584,7 +584,7 @@ static int more(struct more_file *mf)
}
/* FALLTHRU */
case 'g':
- more_scroll(mf, count - mf->topline, 1);
+ more_scroll(mf, (count - 1) - mf->topline, 1);
break;
case 'R':