mirror of
https://github.com/uutils/coreutils
synced 2024-11-17 10:18:11 +00:00
more: simpler page_down
This commit is contained in:
parent
40720dc52d
commit
e73743eb0d
1 changed files with 1 additions and 4 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue