From 8ae9089975fab8f00cf34020ccd90cc143f213db Mon Sep 17 00:00:00 2001 From: Emil Lerch Date: Thu, 19 Mar 2026 14:43:27 -0700 Subject: [PATCH] full screen repaint when switching tabs --- src/tui.zig | 5 +++++ 1 file changed, 5 insertions(+) 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(); } },