aboutsummaryrefslogtreecommitdiff
path: root/src/event.rs
diff options
context:
space:
mode:
authorJoe Wilm <joe@jwilm.com>2018-02-16 17:33:32 -0800
committerJoe Wilm <joe@jwilm.com>2018-06-02 09:32:29 -0700
commit7fe67743ebffd047532f6271bf28474f9d947f64 (patch)
treea9d54cb4a6d40bc7499a23968108cbcd16a0e67d /src/event.rs
parentf67b17ca7b2e0e47ad5eee24d8b86800c61139b4 (diff)
downloadalacritty-7fe67743ebffd047532f6271bf28474f9d947f64.tar.gz
alacritty-7fe67743ebffd047532f6271bf28474f9d947f64.zip
Scroll to bottom on character received
Diffstat (limited to 'src/event.rs')
-rw-r--r--src/event.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/event.rs b/src/event.rs
index 9c3e8edc..3b1df006 100644
--- a/src/event.rs
+++ b/src/event.rs
@@ -59,6 +59,10 @@ impl<'a, N: Notify + 'a> input::ActionContext for ActionContext<'a, N> {
self.terminal.scroll_display(count);
}
+ fn reset_scroll(&mut self) {
+ self.terminal.reset_scroll();
+ }
+
fn copy_selection(&self, buffer: ::copypasta::Buffer) {
if let Some(ref selection) = *self.selection {
if let Some(ref span) = selection.to_span(self.terminal) {