diff options
Diffstat (limited to 'src/app/impl_view.rs')
-rw-r--r-- | src/app/impl_view.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/app/impl_view.rs b/src/app/impl_view.rs index b735003..1261208 100644 --- a/src/app/impl_view.rs +++ b/src/app/impl_view.rs @@ -85,6 +85,7 @@ impl View for App { if self.habits.is_empty() { return EventResult::Ignored; } + let m = self.message.clone(); match e { Event::Key(Key::Right) | Event::Key(Key::Tab) | Event::Char('l') => { self.set_focus(Absolute::Right); @@ -166,7 +167,7 @@ impl View for App { return EventResult::Consumed(None); } Event::CtrlChar('c') => { - self.message.write().unwrap().set_message("Use the :q command to quit"); + m.write().unwrap().set_message("Use the :q command to quit"); return EventResult::Consumed(None); } |