From 85fa4858333f7c49ad5e8eb70fdf0122e60e7c29 Mon Sep 17 00:00:00 2001 From: Victoria Fischer Date: Mon, 22 Jun 2026 13:53:42 +0200 Subject: [PATCH] main: run ratatui handler on crash --- src/main.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main.rs b/src/main.rs index 41f8121..b415280 100644 --- a/src/main.rs +++ b/src/main.rs @@ -94,6 +94,7 @@ async fn main() { eyre_hook.install().unwrap(); std::panic::set_hook(Box::new(move |panic_info| { + ratatui::restore(); let msg = format!("{}", panic_hook.panic_report(panic_info)); println!("Panic: {}", msg); }));