From 9244b0ead346b4ff4bdcfffa579ebbf04edfa884 Mon Sep 17 00:00:00 2001 From: Jakob Kaivo Date: Fri, 29 Apr 2022 20:43:17 -0400 Subject: fix off-by-one for g command --- more.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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': -- cgit v1.2.1