summaryrefslogtreecommitdiff
path: root/src/term/mod.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/term/mod.rs')
-rw-r--r--src/term/mod.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/term/mod.rs b/src/term/mod.rs
index 54c8a7e2..fd321fc6 100644
--- a/src/term/mod.rs
+++ b/src/term/mod.rs
@@ -848,7 +848,8 @@ impl Term {
let num_cols = size.cols();
let num_lines = size.lines();
- let grid = Grid::new(num_lines, num_cols, config.scroll_history(), template);
+ let history_size = config.scrolling().history as usize;
+ let grid = Grid::new(num_lines, num_cols, history_size, template);
let tabspaces = config.tabspaces();
let tabs = IndexRange::from(Column(0)..grid.num_cols())