Force redraw on tab switches

This commit is contained in:
Jeremy Soller 2023-11-28 10:50:22 -07:00
parent 3ba99aaab5
commit d4c854738f
No known key found for this signature in database
GPG key ID: DCFCA852D3906975

View file

@ -430,7 +430,11 @@ impl App {
self.update_nav_bar_active();
let title = match self.active_tab() {
Some(tab) => tab.title(),
Some(tab) => {
// Force redraw on tab switches
tab.editor.lock().unwrap().buffer_mut().set_redraw(true);
tab.title()
}
None => format!("No Open File"),
};