(&mut self)
| 123 | } |
| 124 | |
| 125 | fn scroll_down(&mut self) { |
| 126 | let max_scroll = self.max_scroll(); |
| 127 | if self.scroll_offset < max_scroll { |
| 128 | self.scroll_offset += 1; |
| 129 | } |
| 130 | } |
| 131 | |
| 132 | fn max_scroll(&self) -> usize { |
| 133 | self.content_lines.saturating_sub(self.viewport_lines) |
no test coverage detected