diff --git a/src/tui.zig b/src/tui.zig index f92d0ad..fd016d8 100644 --- a/src/tui.zig +++ b/src/tui.zig @@ -367,6 +367,7 @@ pub const App = struct { self.active_tab = t; self.scroll_offset = 0; self.loadTabData(); + ctx.queueRefresh() catch {}; return ctx.consumeAndRedraw(); } col += lbl_len; @@ -496,6 +497,7 @@ pub const App = struct { self.resetSymbolData(); self.active_tab = .quote; self.loadTabData(); + ctx.queueRefresh() catch {}; } self.mode = .normal; self.input_len = 0; @@ -561,12 +563,14 @@ pub const App = struct { self.prevTab(); self.scroll_offset = 0; self.loadTabData(); + ctx.queueRefresh() catch {}; return ctx.consumeAndRedraw(); }, .next_tab => { self.nextTab(); self.scroll_offset = 0; self.loadTabData(); + ctx.queueRefresh() catch {}; return ctx.consumeAndRedraw(); }, .tab_1, .tab_2, .tab_3, .tab_4, .tab_5, .tab_6 => { @@ -577,6 +581,7 @@ pub const App = struct { self.active_tab = target; self.scroll_offset = 0; self.loadTabData(); + ctx.queueRefresh() catch {}; return ctx.consumeAndRedraw(); } },