From: Vincent Smeets Date: Fri, 20 Aug 2021 09:00:33 +0000 (+0200) Subject: Erase line before writing the filename X-Git-Tag: v2.38-rc1~267^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=9c59b604d385a54070dc8a148876e15773dd4356;p=thirdparty%2Futil-linux.git Erase line before writing the filename --- diff --git a/text-utils/more.c b/text-utils/more.c index 0d081a5312..6c538f7246 100644 --- a/text-utils/more.c +++ b/text-utils/more.c @@ -1907,6 +1907,8 @@ static void display_file(struct more_control *ctl, int left) if (ctl->clear_line_ends) putp(ctl->erase_line); print_separator(':', 14); + if (ctl->clear_line_ends) + putp(ctl->erase_line); puts(ctl->file_names[ctl->argv_position]); if (ctl->clear_line_ends) putp(ctl->erase_line);