From 4a3df7a05b9254ad8570094881a03954d31ed15e Mon Sep 17 00:00:00 2001 From: Emil Lerch Date: Thu, 19 Mar 2026 12:08:39 -0700 Subject: [PATCH] more clearly communicate intent for scroll_bottom --- src/tui.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tui.zig b/src/tui.zig index 11aa0af..6a1d7dd 100644 --- a/src/tui.zig +++ b/src/tui.zig @@ -627,7 +627,7 @@ pub const App = struct { return ctx.consumeAndRedraw(); }, .scroll_bottom => { - self.scroll_offset = 999; + self.scroll_offset = std.math.maxInt(usize) / 2; // clamped during draw...divide by 2 to avoid overflow if arithmetic is done if (self.active_tab == .portfolio and self.portfolio_rows.items.len > 0) self.cursor = self.portfolio_rows.items.len - 1; if (self.active_tab == .options and self.options_rows.items.len > 0)