aboutsummaryrefslogtreecommitdiff
path: root/src/main.rs
diff options
context:
space:
mode:
authoriximeow <me@iximeow.net>2017-11-17 00:50:11 -0800
committeriximeow <me@iximeow.net>2017-11-17 00:50:45 -0800
commit780ccc569fee0eeb21069575bd88dd8f94aeb424 (patch)
treeff4a2802ed25d9d691851232a244fb269cfe5fa6 /src/main.rs
parentd831cff595f5c30b11320c0f653b6cceabd16a4c (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);
}