From e73743eb0d363582f9b9134b0931f1675e58d5d1 Mon Sep 17 00:00:00 2001 From: Terts Diepraam Date: Wed, 9 Jun 2021 21:56:32 +0200 Subject: [PATCH] more: simpler page_down --- src/uu/more/src/more.rs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/uu/more/src/more.rs b/src/uu/more/src/more.rs index 8dbfb8460..271abd994 100644 --- a/src/uu/more/src/more.rs +++ b/src/uu/more/src/more.rs @@ -295,10 +295,7 @@ impl<'a> Pager<'a> { } fn page_down(&mut self) { - self.upper_mark = self - .line_count - .saturating_sub(self.content_rows) - .min(self.upper_mark + self.content_rows); + self.upper_mark += self.content_rows; } fn page_up(&mut self) {