summaryrefslogtreecommitdiff
path: root/alacritty_terminal/src/term/mod.rs
diff options
context:
space:
mode:
authorNathan Lilienthal <nathan@nixpulvis.com>2019-09-09 16:39:39 -0400
committerChristian Duerr <contact@christianduerr.com>2019-09-09 20:39:39 +0000
commit86ffa181b342d39f6e2619d371af22951a5a202d (patch)
treeb7049d58f6d5fa4597ccb932466f77b4f5dfa89f /alacritty_terminal/src/term/mod.rs
parent20846ef925085e027f99aa37f2e12b597750bdc3 (diff)
downloadalacritty-86ffa181b342d39f6e2619d371af22951a5a202d.tar.gz
alacritty-86ffa181b342d39f6e2619d371af22951a5a202d.zip
Reset the Mouse Cursor While Selecting
This change disabled the mouse cursor and URL highlight (underline) while a selection is in progress. A click to clear the selection doesn't trigger a URL action, but will re-enable the URL highlighting to indicate the next click will trigger the launcher.
Diffstat (limited to 'alacritty_terminal/src/term/mod.rs')
-rw-r--r--alacritty_terminal/src/term/mod.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/alacritty_terminal/src/term/mod.rs b/alacritty_terminal/src/term/mod.rs
index 042ad1d0..11e0af45 100644
--- a/alacritty_terminal/src/term/mod.rs
+++ b/alacritty_terminal/src/term/mod.rs
@@ -1359,7 +1359,7 @@ impl Term {
urls
}
- pub fn url_to_string(&self, url: &Url) -> String {
+ pub fn url_to_string(&self, url: Url) -> String {
let mut url_text = String::new();
let mut iter = self.grid.iter_from(url.start);