aboutsummaryrefslogtreecommitdiff
path: root/src/views.rs
diff options
context:
space:
mode:
authorAkshay <[email protected]>2020-07-15 11:00:52 +0100
committerAkshay <[email protected]>2020-07-15 11:00:52 +0100
commit99d2a835b4f032de78d9cdbe27521363a25204bd (patch)
tree2d9a275dc4269679f47e929603e924c6ba648646 /src/views.rs
parent3ded40d04f49983e7907366536dbc94917cee666 (diff)
display view mode in statusline
Diffstat (limited to 'src/views.rs')
-rw-r--r--src/views.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/views.rs b/src/views.rs
index 54d5431..f06978c 100644
--- a/src/views.rs
+++ b/src/views.rs
@@ -135,6 +135,9 @@ where
135 135
136 fn on_event(&mut self, e: Event) -> EventResult { 136 fn on_event(&mut self, e: Event) -> EventResult {
137 let now = Local::now().naive_utc().date(); 137 let now = Local::now().naive_utc().date();
138 if self.is_auto() {
139 return EventResult::Consumed(None);
140 }
138 match e { 141 match e {
139 Event::Key(Key::Enter) | Event::Char('n') => { 142 Event::Key(Key::Enter) | Event::Char('n') => {
140 self.modify(now, TrackEvent::Increment); 143 self.modify(now, TrackEvent::Increment);