aboutsummaryrefslogtreecommitdiff
path: root/src/event.rs
diff options
context:
space:
mode:
authorChristian Duerr <contact@christianduerr.com>2018-03-09 19:45:40 +0100
committerJoe Wilm <joe@jwilm.com>2018-06-02 09:44:58 -0700
commitd3f64072f3fe4d31f7a60eb0cb17a98096617b4b (patch)
tree3b9e13888df43cff8a976e4edcf1f9be89d82023 /src/event.rs
parenta2f127a5e65c8a6f4e1fc0bf79cc832d161a01b7 (diff)
downloadalacritty-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/event.rs')
-rw-r--r--src/event.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/event.rs b/src/event.rs
index 8d2d80e4..14ec0b0e 100644
--- a/src/event.rs
+++ b/src/event.rs
@@ -195,6 +195,7 @@ pub struct Processor<N> {
key_bindings: Vec<KeyBinding>,
mouse_bindings: Vec<MouseBinding>,
mouse_config: config::Mouse,
+ scrolling_config: config::Scrolling,
print_events: bool,
wait_for_event: bool,
notifier: N,
@@ -236,6 +237,7 @@ impl<N: Notify> Processor<N> {
key_bindings: config.key_bindings().to_vec(),
mouse_bindings: config.mouse_bindings().to_vec(),
mouse_config: config.mouse().to_owned(),
+ scrolling_config: config.scrolling(),
print_events: options.print_events,
wait_for_event: true,
notifier,
@@ -404,6 +406,7 @@ impl<N: Notify> Processor<N> {
processor = input::Processor {
ctx: context,
+ scrolling_config: &self.scrolling_config,
mouse_config: &self.mouse_config,
key_bindings: &self.key_bindings[..],
mouse_bindings: &self.mouse_bindings[..],