aboutsummaryrefslogtreecommitdiff
path: root/src/input.rs
diff options
context:
space:
mode:
authorManish Goregaokar <manishsmail@gmail.com>2017-01-06 20:44:51 -0800
committerManish Goregaokar <manishsmail@gmail.com>2017-01-06 20:44:51 -0800
commit4e1f4c8cd7180606156b71ad0222f60e4559f2b3 (patch)
tree28d7a983f5639270976de1f794cc54cb349ea4a8 /src/input.rs
parent49187d53f2f8b7cfca9105c3fb00d7c29e2a457b (diff)
downloadalacritty-4e1f4c8cd7180606156b71ad0222f60e4559f2b3.tar.gz
alacritty-4e1f4c8cd7180606156b71ad0222f60e4559f2b3.zip
Clippy fixes!
Diffstat (limited to 'src/input.rs')
-rw-r--r--src/input.rs9
1 files changed, 4 insertions, 5 deletions
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);
}
}
}