Fix repeat/take arguments in mouse_reporter.rs
Fix 521
This commit is contained in:
parent
ffee3ea5b9
commit
7e124a265b
1 changed files with 2 additions and 2 deletions
|
|
@ -224,8 +224,8 @@ impl MouseReporter {
|
|||
};
|
||||
|
||||
//Generate term codes
|
||||
let x_iter = std::iter::repeat(lines_x.unsigned_abs()).take(button_no_x);
|
||||
let y_iter = std::iter::repeat(lines_y.unsigned_abs()).take(button_no_y);
|
||||
let x_iter = std::iter::repeat(button_no_x).take(lines_x.unsigned_abs());
|
||||
let y_iter = std::iter::repeat(button_no_y).take(lines_y.unsigned_abs());
|
||||
|
||||
x_iter
|
||||
.chain(y_iter)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue