From d4c854738ff2927539acb456055b4f34f9cebcc8 Mon Sep 17 00:00:00 2001 From: Jeremy Soller Date: Tue, 28 Nov 2023 10:50:22 -0700 Subject: [PATCH] Force redraw on tab switches --- src/main.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index 34ebce5..81863ee 100644 --- a/src/main.rs +++ b/src/main.rs @@ -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"), };