aboutsummaryrefslogtreecommitdiff
path: root/src/main.rs
diff options
context:
space:
mode:
authorAndy Wortman <ixineeringeverywhere@gmail.com>2017-11-17 00:50:11 -0800
committerAndy Wortman <ixineeringeverywhere@gmail.com>2017-11-17 00:50:45 -0800
commit799757386fa02339c20eff9f256de0f97b5fa042 (patch)
treeff4a2802ed25d9d691851232a244fb269cfe5fa6 /src/main.rs
parentf8d53de1fea82a4fa5698a6d5501ca34a0677d65 (diff)
fix rendering issues with events, support End key
also disable rendering of delete events
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/main.rs b/src/main.rs
index ecac646..bfb60f9 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -323,6 +323,9 @@ fn handle_input(event: termion::event::Event, tweeter: &mut tw::TwitterCache, qu
}
}
},
+ Event::Key(Key::End) => {
+ tweeter.display_info.infos_seek = 0;
+ }
Event::Key(Key::PageUp) => {
tweeter.display_info.infos_seek = tweeter.display_info.infos_seek.saturating_add(1);
}