mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-05-30 19:41:15 -03:00
Fix inverted condition in panic handler
Fixes 139d204c (Restore terminal state again in panic handler, 2024-10-12).
This commit is contained in:
@@ -34,7 +34,7 @@ pub fn panic_handler(main: impl FnOnce() -> i32 + UnwindSafe) -> ! {
|
||||
"%s crashed, please report a bug.",
|
||||
PROGRAM_NAME.get().unwrap(),
|
||||
);
|
||||
if is_main_thread() {
|
||||
if !is_main_thread() {
|
||||
eprintf!("\n");
|
||||
std::thread::sleep(Duration::from_secs(1));
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user