fix reversion

This commit is contained in:
nyx 2024-11-06 15:35:05 -05:00
parent c36879e22f
commit 5692582034
No known key found for this signature in database
GPG Key ID: 6038FFD6589902CB

View File

@ -171,7 +171,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;
}
}