more: simpler page_down

This commit is contained in:
Terts Diepraam 2021-06-09 21:56:32 +02:00
parent 40720dc52d
commit e73743eb0d

View file

@ -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) {