From 856770fed5e692a379296dd28d9ba3ef90e2ef4b Mon Sep 17 00:00:00 2001 From: Joe Wilm Date: Fri, 22 Dec 2017 13:35:55 -0800 Subject: Style nits --- src/input.rs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/input.rs') 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 -- cgit