diff options
author | Elaina Martineau <elainamartineau@gmail.com> | 2019-07-08 12:13:55 -0600 |
---|---|---|
committer | Christian Duerr <chrisduerr@users.noreply.github.com> | 2019-07-08 18:13:55 +0000 |
commit | 84aca672964e29b5b4503b7da7bc34fc395f08ab (patch) | |
tree | 01c6d670624809ad7e7b560c0beb76f8f77f5bd0 /alacritty_terminal/src/term/mod.rs | |
parent | 7331e89122c464e7b1a73b2e7b20399f832a5913 (diff) | |
download | alacritty-84aca672964e29b5b4503b7da7bc34fc395f08ab.tar.gz alacritty-84aca672964e29b5b4503b7da7bc34fc395f08ab.zip |
Change mouse cursor when hovering over the message bar
Diffstat (limited to 'alacritty_terminal/src/term/mod.rs')
-rw-r--r-- | alacritty_terminal/src/term/mod.rs | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/alacritty_terminal/src/term/mod.rs b/alacritty_terminal/src/term/mod.rs index c167875b..7de82a8d 100644 --- a/alacritty_terminal/src/term/mod.rs +++ b/alacritty_terminal/src/term/mod.rs @@ -1347,7 +1347,7 @@ impl Term { } #[inline] - pub fn reset_url_highlight(&mut self) { + pub fn reset_mouse_cursor(&mut self) { let mouse_mode = TermMode::MOUSE_MOTION | TermMode::MOUSE_DRAG | TermMode::MOUSE_REPORT_CLICK; let mouse_cursor = if self.mode().intersects(mouse_mode) { @@ -1356,6 +1356,11 @@ impl Term { MouseCursor::Text }; self.set_mouse_cursor(mouse_cursor); + } + + #[inline] + pub fn reset_url_highlight(&mut self) { + self.reset_mouse_cursor(); self.grid.url_highlight = None; self.dirty = true; @@ -1404,6 +1409,7 @@ impl ansi::Handler for Term { #[inline] fn set_mouse_cursor(&mut self, cursor: MouseCursor) { self.next_mouse_cursor = Some(cursor); + self.dirty = true; } /// A character to be displayed |