pager: wrong max_cursor_pos setting

embed
Manos Pitsidianakis 2019-05-03 23:41:46 +03:00
parent fb406667ab
commit e7c50c8dc5
Signed by: Manos Pitsidianakis
GPG Key ID: 73627C2F690DF710
1 changed files with 1 additions and 1 deletions

View File

@ -496,7 +496,7 @@ impl Component for Pager {
((0, self.cursor_pos), (self.width - 1, self.height - 1)),
);
if pos.1 < get_y(bottom_right!(area)) {
self.max_cursor_pos = Some(self.cursor_pos + 1);
self.max_cursor_pos = Some(self.height + 1);
}
context.dirty_areas.push_back(area);
}