mirror of
https://github.com/ChrisTitusTech/linutil.git
synced 2024-11-21 12:59:41 +00:00
fix reversion (#923)
This commit is contained in:
parent
652b8808a9
commit
421044f43e
|
@ -170,7 +170,7 @@ impl FloatingText {
|
||||||
|
|
||||||
fn scroll_down(&mut self) {
|
fn scroll_down(&mut self) {
|
||||||
let visible_lines = self.frame_height.saturating_sub(2);
|
let visible_lines = self.frame_height.saturating_sub(2);
|
||||||
if self.v_scroll + visible_lines < self.src.len() {
|
if self.v_scroll + visible_lines < self.wrapped_lines.len() {
|
||||||
self.v_scroll += 1;
|
self.v_scroll += 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user