From 7db3154e9ebdf3c4e4863a9f2ab13daffe6e7285 Mon Sep 17 00:00:00 2001 From: Jonas Maier <> Date: Thu, 5 Mar 2026 11:05:21 +0100 Subject: comment to explain --- src/main.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/main.rs') diff --git a/src/main.rs b/src/main.rs index fe66eba..2cb1ba7 100644 --- a/src/main.rs +++ b/src/main.rs @@ -257,11 +257,12 @@ fn main() { crate::panic::hook(); + // it is quite annoying when the terminal window closes due to a crash, so let's just catch all panics loop { let res = std::panic::catch_unwind(event_loop); match res { Ok(_) => break, - Err(_) => println!("sorry about that, let's continue with the shell"), + Err(_) => continue, } } -- cgit v1.2.3