diff options
author | Kirill Chibisov <wchibisovkirill@gmail.com> | 2019-08-04 19:01:08 +0300 |
---|---|---|
committer | Christian Duerr <chrisduerr@users.noreply.github.com> | 2019-08-04 16:01:08 +0000 |
commit | e1892ee92ab6c826787e19c7d55de3f4b40e16a8 (patch) | |
tree | ecf1b6a9e801cdd2bfb6967373de0765434d8033 /alacritty_terminal/src | |
parent | 5a40149069c91f63f9dcbf5fb46b36144b30eb95 (diff) | |
download | alacritty-e1892ee92ab6c826787e19c7d55de3f4b40e16a8.tar.gz alacritty-e1892ee92ab6c826787e19c7d55de3f4b40e16a8.zip |
Fix crash when hovering over message bar
This commit fixes a regression introduced in 9dddf64.
Fixes #2699.
Diffstat (limited to 'alacritty_terminal/src')
-rw-r--r-- | alacritty_terminal/src/input.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/alacritty_terminal/src/input.rs b/alacritty_terminal/src/input.rs index 3cf6247c..7e87054c 100644 --- a/alacritty_terminal/src/input.rs +++ b/alacritty_terminal/src/input.rs @@ -393,7 +393,6 @@ impl<'a, A: ActionContext + 'a> Processor<'a, A> { let mouse_mode = TermMode::MOUSE_MOTION | TermMode::MOUSE_DRAG | TermMode::MOUSE_REPORT_CLICK; - let buffer_point = self.ctx.terminal().visible_to_buffer(point); // Check message bar before URL to ignore URLs in the message bar if let Some(message) = self.message_at_point(Some(point)) { @@ -409,6 +408,7 @@ impl<'a, A: ActionContext + 'a> Processor<'a, A> { && (!self.ctx.terminal().mode().intersects(mouse_mode) || modifiers.shift) && self.mouse_config.url.launcher.is_some() { + let buffer_point = self.ctx.terminal().visible_to_buffer(point); if let Some(url) = self.ctx.terminal().urls().drain(..).find(|url| url.contains(buffer_point)) { |