aboutsummaryrefslogtreecommitdiff
path: root/src/input.rs
diff options
context:
space:
mode:
authorJoe Wilm <joe@jwilm.com>2017-12-22 13:35:55 -0800
committerJoe Wilm <jwilm@users.noreply.github.com>2017-12-22 14:00:17 -0800
commit856770fed5e692a379296dd28d9ba3ef90e2ef4b (patch)
tree713f61f201ae6337d68c6c5e34f09816e8cd82ed /src/input.rs
parent09b78dc80aef625dcf0796a59da33e7fdb94ba78 (diff)
downloadalacritty-856770fed5e692a379296dd28d9ba3ef90e2ef4b.tar.gz
alacritty-856770fed5e692a379296dd28d9ba3ef90e2ef4b.zip
Style nits
Diffstat (limited to 'src/input.rs')
-rw-r--r--src/input.rs7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/input.rs b/src/input.rs
index 7521409c..bc172bca 100644
--- a/src/input.rs
+++ b/src/input.rs
@@ -365,7 +365,8 @@ impl<'a, A: ActionContext + 'a> Processor<'a, A> {
}
pub fn on_mouse_wheel(&mut self, delta: MouseScrollDelta, phase: TouchPhase) {
- let modes = mode::MOUSE_REPORT_CLICK | mode::MOUSE_MOTION | mode::SGR_MOUSE | mode::ALT_SCREEN_BUF;
+ let modes = mode::MOUSE_REPORT_CLICK | mode::MOUSE_MOTION | mode::SGR_MOUSE |
+ mode::ALT_SCREEN;
if !self.ctx.terminal_mode().intersects(modes) {
return;
}
@@ -380,7 +381,7 @@ impl<'a, A: ActionContext + 'a> Processor<'a, A> {
};
for _ in 0..(to_scroll.abs() as usize) {
- if self.ctx.terminal_mode().intersects(mode::ALT_SCREEN_BUF) {
+ if self.ctx.terminal_mode().intersects(mode::ALT_SCREEN) {
// Faux scrolling
if code == 64 {
// Scroll up one line
@@ -415,7 +416,7 @@ impl<'a, A: ActionContext + 'a> Processor<'a, A> {
65
};
- if self.ctx.terminal_mode().intersects(mode::ALT_SCREEN_BUF) {
+ if self.ctx.terminal_mode().intersects(mode::ALT_SCREEN) {
// Faux scrolling
if button == 64 {
// Scroll up one line