From 56925820340d3d0460e02a9896f5a10cfc7a34d4 Mon Sep 17 00:00:00 2001 From: nyx Date: Wed, 6 Nov 2024 15:35:05 -0500 Subject: [PATCH] fix reversion --- tui/src/floating_text.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tui/src/floating_text.rs b/tui/src/floating_text.rs index a43361af..89f67c54 100644 --- a/tui/src/floating_text.rs +++ b/tui/src/floating_text.rs @@ -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; } }