From 8f7579ce04419f5e2b2229e8482c7b421e5c4bcf Mon Sep 17 00:00:00 2001 From: anon Date: Sat, 12 Aug 2023 12:25:51 +0200 Subject: [PATCH] fixed over paging bug --- src/display.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/display.c b/src/display.c index ea1ee80..7d14a76 100644 --- a/src/display.c +++ b/src/display.c @@ -380,7 +380,6 @@ static inline void display_results(){ srctxtw -= numlen+1; /* decide where to list from */ - /* XXX: this error handling migth be redundant*/ { int seekerr; do{ @@ -391,7 +390,7 @@ static inline void display_results(){ /* until the max references have been displayed or there is no more room */ for (disprefs = 0, screenline = WRESULT_TABLE_BODY_START; - disprefs < mdisprefs && screenline <= result_window_height; + disprefs < mdisprefs && screenline < (result_window_height-1); ++disprefs, ++screenline) { /* read the reference line */