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