mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-30 12:37:49 +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) {
|
fn page_down(&mut self) {
|
||||||
self.upper_mark = self
|
self.upper_mark += self.content_rows;
|
||||||
.line_count
|
|
||||||
.saturating_sub(self.content_rows)
|
|
||||||
.min(self.upper_mark + self.content_rows);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
fn page_up(&mut self) {
|
fn page_up(&mut self) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue