full screen repaint when switching tabs

This commit is contained in:
Emil Lerch 2026-03-19 14:43:27 -07:00
parent 31d49d4432
commit 8ae9089975
Signed by: lobo
GPG key ID: A7B62D657EF764F8

View file

@ -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();
}
},