Skip to content

Commit

Permalink
Force redraw on tab switches
Browse files Browse the repository at this point in the history
  • Loading branch information
jackpot51 committed Nov 28, 2023
1 parent 3ba99aa commit d4c8547
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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"),
};

Expand Down

0 comments on commit d4c8547

Please sign in to comment.