From 4e1f4c8cd7180606156b71ad0222f60e4559f2b3 Mon Sep 17 00:00:00 2001 From: Manish Goregaokar Date: Fri, 6 Jan 2017 20:44:51 -0800 Subject: Clippy fixes! --- src/input.rs | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'src/input.rs') diff --git a/src/input.rs b/src/input.rs index f2bd461b..8823b89e 100644 --- a/src/input.rs +++ b/src/input.rs @@ -209,11 +209,10 @@ impl<'a, N: Notify + 'a> Processor<'a, N> { line: point.line, col: point.col }, self.ctx.mouse.cell_side); - } else if self.ctx.terminal.mode().contains(mode::MOUSE_MOTION) { - // Only report motion when changing cells - if prev_line != self.ctx.mouse.line || prev_col != self.ctx.mouse.column { - self.mouse_report(0 + 32); - } + } else if self.ctx.terminal.mode().contains(mode::MOUSE_MOTION) + // Only report motion when changing cells + && (prev_line != self.ctx.mouse.line || prev_col != self.ctx.mouse.column) { + self.mouse_report(32); } } } -- cgit v1.2.3-54-g00ecf