aboutsummaryrefslogtreecommitdiff
path: root/src/input.rs
diff options
context:
space:
mode:
authorChristian Duerr <contact@christianduerr.com>2018-03-09 19:45:40 +0100
committerJoe Wilm <jwilm@users.noreply.github.com>2018-03-13 14:52:14 -0700
commitc1e831dab03bd1a48d2aa0f383aa5aaea2b3632b (patch)
tree6521a6f386bcbe356b4462e827efd9565d159cb7 /src/input.rs
parent290e2cfb172565c3b80f207555397f57f1ef7fb0 (diff)
downloadalacritty-c1e831dab03bd1a48d2aa0f383aa5aaea2b3632b.tar.gz
alacritty-c1e831dab03bd1a48d2aa0f383aa5aaea2b3632b.zip
Merge branch #1095
Because there was some overlap with branch #1095, these two PRs have been added together and the config has been restructured to make use of a `scrolling` section. The default faux scrolling amount has also been changed to `3` because this simplifies the code and falls in line with what most other terminal emulators do. There should be no additional test failures due to this.
Diffstat (limited to 'src/input.rs')
-rw-r--r--src/input.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/input.rs b/src/input.rs
index fabb3485..9b9aedc3 100644
--- a/src/input.rs
+++ b/src/input.rs
@@ -44,6 +44,7 @@ pub struct Processor<'a, A: 'a> {
pub key_bindings: &'a [KeyBinding],
pub mouse_bindings: &'a [MouseBinding],
pub mouse_config: &'a config::Mouse,
+ pub scrolling_config: &'a config::Scrolling,
pub ctx: A,
}
@@ -711,8 +712,9 @@ mod tests {
triple_click: ClickHandler {
threshold: Duration::from_millis(1000),
},
- faux_scrollback_lines: 1,
+ faux_scrollback_lines: None,
},
+ scrolling_config: &config::Scrolling::default(),
key_bindings: &config.key_bindings()[..],
mouse_bindings: &config.mouse_bindings()[..],
};