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)