summaryrefslogtreecommitdiff
path: root/src/gmutil.c
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2020-09-17 07:48:40 +0300
committerJaakko Keränen <jaakko.keranen@iki.fi>2020-09-17 07:48:56 +0300
commita0f5bccc709866521fefeb34d6b97cafdbec6fad (patch)
treefefbc4c6cfec66bd84b85ede26a28eb1622a6940 /src/gmutil.c
parent115602cf34dfb2f151846673468a41f16712eb49 (diff)
Recognize and visualize "mailto:" links
"mailto:" links now have their own icon and when clicked they open the URL in the default web browser. IssueID #5
Diffstat (limited to 'src/gmutil.c')
-rw-r--r--src/gmutil.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gmutil.c b/src/gmutil.c
index 131734b2..b2c7e93f 100644
--- a/src/gmutil.c
+++ b/src/gmutil.c
@@ -132,7 +132,8 @@ const iString *absoluteUrl_String(const iString *d, const iString *urlMaybeRelat
132 iUrl rel; 132 iUrl rel;
133 init_Url(&orig, d); 133 init_Url(&orig, d);
134 init_Url(&rel, urlMaybeRelative); 134 init_Url(&rel, urlMaybeRelative);
135 if (equalCase_Rangecc(rel.scheme, "data") || equalCase_Rangecc(rel.scheme, "about")) { 135 if (equalCase_Rangecc(rel.scheme, "data") || equalCase_Rangecc(rel.scheme, "about") ||
136 equalCase_Rangecc(rel.scheme, "mailto")) {
136 /* Special case, the contents should be left unparsed. */ 137 /* Special case, the contents should be left unparsed. */
137 return urlMaybeRelative; 138 return urlMaybeRelative;
138 } 139 }