aboutsummaryrefslogtreecommitdiff
path: root/src/lib.rs
diff options
context:
space:
mode:
authorChristian Duerr <chrisduerr@users.noreply.github.com>2019-03-19 19:14:17 +0000
committerGitHub <noreply@github.com>2019-03-19 19:14:17 +0000
commita672f7d553ac17d5aaef8dc667dee31d5815677d (patch)
tree0289e3deb60e3fdce6025fded1ec9c3299bc893d /src/lib.rs
parenteb7a1ea803ba54d3b8cd6af49255eb8fbe0d7544 (diff)
downloadalacritty-a672f7d553ac17d5aaef8dc667dee31d5815677d.tar.gz
alacritty-a672f7d553ac17d5aaef8dc667dee31d5815677d.zip
Add URL hover highlighting
This changes the cursor whenever it moves to a cell which contains part of a URL. When a URL is hovered over, all characters that are recognized as part of the URL will be underlined and the mouse cursor shape will be changed. After the cursor leaves the URL, the previous hover state is restored. This also changes the behavior when clicking an illegal character right in front of a URL. Previously this would still launch the URL, but strip the illegal character. Now these clicks are ignored to make sure there's no mismatch between underline and legal URL click positions
Diffstat (limited to 'src/lib.rs')
-rw-r--r--src/lib.rs7
1 files changed, 0 insertions, 7 deletions
diff --git a/src/lib.rs b/src/lib.rs
index 8cf0f026..64d554ca 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -52,13 +52,6 @@ mod url;
pub use crate::grid::Grid;
pub use crate::term::Term;
-/// Facade around [winit's `MouseCursor`](glutin::MouseCursor)
-#[derive(Debug, Eq, PartialEq, Copy, Clone)]
-pub enum MouseCursor {
- Arrow,
- Text,
-}
-
pub mod gl {
#![allow(clippy::all)]
include!(concat!(env!("OUT_DIR"), "/gl_bindings.rs"));