From 19de1653985520258bd081e32275c48e2ac98f5b Mon Sep 17 00:00:00 2001 From: nc Date: Mon, 20 Jul 2020 18:44:31 -0400 Subject: remove debug code, add cargo.lock --- Cargo.lock | 1 + src/main.rs | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Cargo.lock b/Cargo.lock index ade0cc4..5075c64 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -271,6 +271,7 @@ dependencies = [ "notify", "serde", "serde_json", + "signal-hook", "typetag", ] diff --git a/src/main.rs b/src/main.rs index ca1b653..d733f97 100644 --- a/src/main.rs +++ b/src/main.rs @@ -53,7 +53,6 @@ fn main() { let app = App::load_state(); let m = app.message.clone(); unsafe { signal_hook::register(signal_hook::SIGINT, move || { - std::fs::File::create("killed").unwrap(); m.write().unwrap().set_message("Use the :q command to quit"); }) }.unwrap(); @@ -67,6 +66,7 @@ fn main() { s.add_global_callback(':', |s| open_command_window(s)); s.set_theme(theme::theme_gen()); + s.run(); } } -- cgit v1.2.3