diff options
author | Joe Wilm <joe@jwilm.com> | 2018-02-16 17:33:32 -0800 |
---|---|---|
committer | Joe Wilm <joe@jwilm.com> | 2018-06-02 09:32:29 -0700 |
commit | 7fe67743ebffd047532f6271bf28474f9d947f64 (patch) | |
tree | a9d54cb4a6d40bc7499a23968108cbcd16a0e67d /src/input.rs | |
parent | f67b17ca7b2e0e47ad5eee24d8b86800c61139b4 (diff) | |
download | alacritty-7fe67743ebffd047532f6271bf28474f9d947f64.tar.gz alacritty-7fe67743ebffd047532f6271bf28474f9d947f64.zip |
Scroll to bottom on character received
Diffstat (limited to 'src/input.rs')
-rw-r--r-- | src/input.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/input.rs b/src/input.rs index 2e345c2a..68787979 100644 --- a/src/input.rs +++ b/src/input.rs @@ -65,6 +65,7 @@ pub trait ActionContext { fn change_font_size(&mut self, delta: i8); fn reset_font_size(&mut self); fn scroll(&mut self, count: isize) {} + fn reset_scroll(&mut self) {} } /// Describes a state and action to take in that state @@ -560,6 +561,7 @@ impl<'a, A: ActionContext + 'a> Processor<'a, A> { /// Process a received character pub fn received_char(&mut self, c: char) { if !*self.ctx.suppress_chars() { + self.ctx.reset_scroll(); self.ctx.clear_selection(); let utf8_len = c.len_utf8(); |