Skip to content

Commit

Permalink
fix reversion (#923)
Browse files Browse the repository at this point in the history
  • Loading branch information
nnyyxxxx authored Nov 7, 2024
1 parent 652b880 commit 421044f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tui/src/floating_text.rs
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ impl FloatingText {

fn scroll_down(&mut self) {
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;
}
}
Expand Down

0 comments on commit 421044f

Please sign in to comment.