From b098f5a189bb57c6cbdc54a4eebf602eae60e0e4 Mon Sep 17 00:00:00 2001 From: Yu-Shih Wang Date: Sun, 15 Jan 2023 22:28:06 +0800 Subject: [PATCH] clears the residual output at scroll position --- src/more.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/more.c b/src/more.c index 0280b24..cdc40da 100644 --- a/src/more.c +++ b/src/more.c @@ -430,7 +430,7 @@ more (int pfile, const char *descr, const char *prompt) PRINTF( "-- %s -- %s (%u)--", prompt, descr, linecount); key = keypress(); - PRINTF("%40s\r",""); + PRINTF("\r%79s\r",""); nlines = 0; #if 0 /* debugging */