Fixup phantom release mouse code when using mouse wheel
This was breaking scrolling in vim
This commit is contained in:
1 parent
62d43ddd63
commit
3d3a718182
1 file changed
+5
-3
@@ -628,9 +628,11 @@ impl TerminalState {
|
||||
kind: MouseEventKind::Release,
|
||||
..
|
||||
} => {
|
||||
self.current_mouse_button = MouseButton::None;
|
||||
if self.sgr_mouse {
|
||||
write!(host.writer(), "\x1b[<3;{};{}m", event.x + 1, event.y + 1)?;
|
||||
if self.current_mouse_button != MouseButton::None {
|
||||
self.current_mouse_button = MouseButton::None;
|
||||
if self.sgr_mouse {
|
||||
write!(host.writer(), "\x1b[<3;{};{}m", event.x + 1, event.y + 1)?;
|
||||
}
|
||||
}
|
||||
}
|
||||
MouseEvent {
|
||||
|
||||
Reference in new issue
Block a user