diff options
author | Christian Duerr <contact@christianduerr.com> | 2018-03-09 19:45:40 +0100 |
---|---|---|
committer | Joe Wilm <joe@jwilm.com> | 2018-06-02 09:44:58 -0700 |
commit | d3f64072f3fe4d31f7a60eb0cb17a98096617b4b (patch) | |
tree | 3b9e13888df43cff8a976e4edcf1f9be89d82023 /src/input.rs | |
parent | a2f127a5e65c8a6f4e1fc0bf79cc832d161a01b7 (diff) | |
download | alacritty-d3f64072f3fe4d31f7a60eb0cb17a98096617b4b.tar.gz alacritty-d3f64072f3fe4d31f7a60eb0cb17a98096617b4b.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.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/input.rs b/src/input.rs index 20a0b25b..3ff631e0 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, } @@ -756,8 +757,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()[..], }; |