diff options
author | Christian Duerr <contact@christianduerr.com> | 2021-04-16 20:23:54 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-16 20:23:54 +0000 |
commit | 504b38cbd14c58b518d5f91dc1bf27311c5fe507 (patch) | |
tree | 003bf309c14a6840fc9e56e7297b10d061bb4b05 | |
parent | 9cb55621f77a8eeca3738013ef9b1274b7a97e96 (diff) | |
download | alacritty-504b38cbd14c58b518d5f91dc1bf27311c5fe507.tar.gz alacritty-504b38cbd14c58b518d5f91dc1bf27311c5fe507.zip |
Fix mouse reports
The patch 9cb5562 has introduced a regression which would abort if a
mouse report's line was bigger than zero, which is the exact opposite of
when a mouse report is required.
Fixes #4980.
-rw-r--r-- | alacritty/src/input.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/alacritty/src/input.rs b/alacritty/src/input.rs index 0fd2b224..977a6e5d 100644 --- a/alacritty/src/input.rs +++ b/alacritty/src/input.rs @@ -421,7 +421,7 @@ impl<T: EventListener, A: ActionContext<T>> Processor<T, A> { let point = self.ctx.mouse().point(&self.ctx.size_info(), display_offset); // Assure the mouse point is not in the scrollback. - if point.line >= 0 { + if point.line < 0 { return; } |