diff options
author | Kirill Chibisov <wchibisovkirill@gmail.com> | 2019-07-28 20:04:26 +0300 |
---|---|---|
committer | Christian Duerr <chrisduerr@users.noreply.github.com> | 2019-07-28 17:04:26 +0000 |
commit | 72dfa477a9785289931e8e05dfc8244bb6a4e81c (patch) | |
tree | ec6c959deda0aea2a6c6571dac0242a4ce7a084a /alacritty_terminal/src/term/mod.rs | |
parent | 14a48a25332ebad2ab227fad618d06efe2501d43 (diff) | |
download | alacritty-72dfa477a9785289931e8e05dfc8244bb6a4e81c.tar.gz alacritty-72dfa477a9785289931e8e05dfc8244bb6a4e81c.zip |
Fix cursor flickering on url hover
This commit fixes the regression introduced in 84aca67 and also fixes url
highlight bounds computation when url ends on a last column.
Fixes #2665.
Diffstat (limited to 'alacritty_terminal/src/term/mod.rs')
-rw-r--r-- | alacritty_terminal/src/term/mod.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/alacritty_terminal/src/term/mod.rs b/alacritty_terminal/src/term/mod.rs index 34d06b21..691a4fe1 100644 --- a/alacritty_terminal/src/term/mod.rs +++ b/alacritty_terminal/src/term/mod.rs @@ -896,6 +896,7 @@ impl Term { pub fn scroll_display(&mut self, scroll: Scroll) { self.grid.scroll_display(scroll); self.reset_url_highlight(); + self.reset_mouse_cursor(); self.dirty = true; } @@ -1360,8 +1361,6 @@ impl Term { #[inline] pub fn reset_url_highlight(&mut self) { - self.reset_mouse_cursor(); - self.grid.url_highlight = None; self.dirty = true; } |