Fix warnings
This commit is contained in:
parent
9b2ab1202a
commit
ac4472e45e
2 changed files with 3 additions and 3 deletions
|
|
@ -8,7 +8,7 @@ use alacritty_terminal::{
|
|||
term::{
|
||||
cell::Flags,
|
||||
color::{self, Colors},
|
||||
search::{Match, RegexSearch},
|
||||
search::RegexSearch,
|
||||
viewport_to_point, Config, TermMode,
|
||||
},
|
||||
tty::{self, Options},
|
||||
|
|
|
|||
|
|
@ -876,7 +876,7 @@ where
|
|||
Event::Mouse(MouseEvent::WheelScrolled { delta }) => {
|
||||
if let Some(_p) = cursor_position.position_in(layout.bounds()) {
|
||||
match delta {
|
||||
ScrollDelta::Lines { x, y } => {
|
||||
ScrollDelta::Lines { x: _, y } => {
|
||||
//TODO: this adjustment is just a guess!
|
||||
state.scroll_pixels = 0.0;
|
||||
let lines = (-y * 6.0) as i32;
|
||||
|
|
@ -885,7 +885,7 @@ where
|
|||
}
|
||||
status = Status::Captured;
|
||||
}
|
||||
ScrollDelta::Pixels { x, y } => {
|
||||
ScrollDelta::Pixels { x: _, y } => {
|
||||
//TODO: this adjustment is just a guess!
|
||||
state.scroll_pixels -= y * 6.0;
|
||||
let mut lines = 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue