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/grid/mod.rs | |
parent | f67b17ca7b2e0e47ad5eee24d8b86800c61139b4 (diff) | |
download | alacritty-7fe67743ebffd047532f6271bf28474f9d947f64.tar.gz alacritty-7fe67743ebffd047532f6271bf28474f9d947f64.zip |
Scroll to bottom on character received
Diffstat (limited to 'src/grid/mod.rs')
-rw-r--r-- | src/grid/mod.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/grid/mod.rs b/src/grid/mod.rs index 23ee9cf4..c6543270 100644 --- a/src/grid/mod.rs +++ b/src/grid/mod.rs @@ -108,6 +108,10 @@ impl<T: Copy + Clone> Grid<T> { ); } + pub fn reset_scroll(&mut self) { + self.display_offset = 0; + } + pub fn new(lines: index::Line, cols: index::Column, template: T) -> Grid<T> { let mut raw = Storage::with_capacity(*lines + SCROLLBACK_LINES, lines); let template_row = Row::new(cols, &template); |