aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornc <[email protected]>2020-07-20 23:44:31 +0100
committernc <[email protected]>2020-07-20 23:44:31 +0100
commit19de1653985520258bd081e32275c48e2ac98f5b (patch)
treee42a3db1cd253d5a09091770ec27dba0aa9895f2
parent66b2f0793f236dccd3269ae1c3cbfe2293f7fb3d (diff)
remove debug code, add cargo.lock
-rw-r--r--Cargo.lock1
-rw-r--r--src/main.rs2
2 files changed, 2 insertions, 1 deletions
diff --git a/Cargo.lock b/Cargo.lock
index ade0cc4..5075c64 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -271,6 +271,7 @@ dependencies = [
271 "notify", 271 "notify",
272 "serde", 272 "serde",
273 "serde_json", 273 "serde_json",
274 "signal-hook",
274 "typetag", 275 "typetag",
275] 276]
276 277
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() {
53 let app = App::load_state(); 53 let app = App::load_state();
54 let m = app.message.clone(); 54 let m = app.message.clone();
55 unsafe { signal_hook::register(signal_hook::SIGINT, move || { 55 unsafe { signal_hook::register(signal_hook::SIGINT, move || {
56 std::fs::File::create("killed").unwrap();
57 m.write().unwrap().set_message("Use the :q command to quit"); 56 m.write().unwrap().set_message("Use the :q command to quit");
58 }) }.unwrap(); 57 }) }.unwrap();
59 58
@@ -67,6 +66,7 @@ fn main() {
67 s.add_global_callback(':', |s| open_command_window(s)); 66 s.add_global_callback(':', |s| open_command_window(s));
68 67
69 s.set_theme(theme::theme_gen()); 68 s.set_theme(theme::theme_gen());
69
70 s.run(); 70 s.run();
71 } 71 }
72} 72}