diff options
author | Joe Wilm <joe@jwilm.com> | 2018-02-16 17:54:32 -0800 |
---|---|---|
committer | Joe Wilm <joe@jwilm.com> | 2018-06-02 09:32:29 -0700 |
commit | c49a7e88f64d1421474d492cc6f51bfd30e1e4d1 (patch) | |
tree | 970237ddc0a0f1702c417b2f072cd70a0e9c228a /src/term | |
parent | 7fe67743ebffd047532f6271bf28474f9d947f64 (diff) | |
download | alacritty-c49a7e88f64d1421474d492cc6f51bfd30e1e4d1.tar.gz alacritty-c49a7e88f64d1421474d492cc6f51bfd30e1e4d1.zip |
Make number of scrollback lines configurable
Diffstat (limited to 'src/term')
-rw-r--r-- | src/term/mod.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/term/mod.rs b/src/term/mod.rs index 3bce60cd..220dd8e6 100644 --- a/src/term/mod.rs +++ b/src/term/mod.rs @@ -785,7 +785,7 @@ impl Term { } pub fn reset_scroll(&mut self) { - self.grid.reset_scroll(); + self.grid.reset_scroll_display(); } #[inline] @@ -799,7 +799,7 @@ impl Term { let num_cols = size.cols(); let num_lines = size.lines(); - let grid = Grid::new(num_lines, num_cols, template); + let grid = Grid::new(num_lines, num_cols, config.scroll_history(), template); let tabspaces = config.tabspaces(); let tabs = IndexRange::from(Column(0)..grid.num_cols()) |