diff options
author | Aleksey Kuznetsov <zummenix@gmail.com> | 2019-10-16 00:13:58 +0500 |
---|---|---|
committer | Christian Duerr <contact@christianduerr.com> | 2019-10-15 21:13:58 +0200 |
commit | 49380bffd24203f139dc32c7bdc9958e64d9dd4d (patch) | |
tree | 0d4bfb3cb7f66868983a6ed5a22695749502995f /alacritty_terminal/src/config | |
parent | 124e98e94e66d5790d4523adb9cd75f85a4691f4 (diff) | |
download | alacritty-49380bffd24203f139dc32c7bdc9958e64d9dd4d.tar.gz alacritty-49380bffd24203f139dc32c7bdc9958e64d9dd4d.zip |
Add support for alternate scroll escape
Fixes #2727.
Diffstat (limited to 'alacritty_terminal/src/config')
-rw-r--r-- | alacritty_terminal/src/config/scrolling.rs | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/alacritty_terminal/src/config/scrolling.rs b/alacritty_terminal/src/config/scrolling.rs index 8471fcd7..1746266f 100644 --- a/alacritty_terminal/src/config/scrolling.rs +++ b/alacritty_terminal/src/config/scrolling.rs @@ -12,9 +12,11 @@ pub struct Scrolling { #[serde(deserialize_with = "failure_default")] multiplier: ScrollingMultiplier, #[serde(deserialize_with = "failure_default")] - faux_multiplier: ScrollingMultiplier, - #[serde(deserialize_with = "failure_default")] pub auto_scroll: bool, + + // TODO: DEPRECATED + #[serde(deserialize_with = "failure_default")] + faux_multiplier: Option<ScrollingMultiplier>, } impl Scrolling { @@ -26,8 +28,8 @@ impl Scrolling { self.multiplier.0 } - pub fn faux_multiplier(self) -> u8 { - self.faux_multiplier.0 + pub fn faux_multiplier(self) -> Option<u8> { + self.faux_multiplier.map(|sm| sm.0) } // Update the history size, used in ref tests |