summaryrefslogtreecommitdiff
path: root/src/gmdocument.c
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2020-07-28 17:47:23 +0300
committerJaakko Keränen <jaakko.keranen@iki.fi>2020-07-28 17:47:23 +0300
commit56af1a99da603571df023f72dcb1dccd444f5aaf (patch)
treee404f4fa665056bc04ba1c4492ce118229e3a8a1 /src/gmdocument.c
parentd1b4d7ec00e83d9f57ad4507233db94ba036f120 (diff)
DocumentWidget: Don't repeat the hostname if visible
Diffstat (limited to 'src/gmdocument.c')
-rw-r--r--src/gmdocument.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gmdocument.c b/src/gmdocument.c
index 1a8312f0..5da654c4 100644
--- a/src/gmdocument.c
+++ b/src/gmdocument.c
@@ -145,6 +145,7 @@ static iRangecc addLink_GmDocument_(iGmDocument *d, iRangecc line, iGmLinkId *li
145 trim_Rangecc(&desc); 145 trim_Rangecc(&desc);
146 if (!isEmpty_Range(&desc)) { 146 if (!isEmpty_Range(&desc)) {
147 line = desc; /* Just show the description. */ 147 line = desc; /* Just show the description. */
148 link->flags |= userFriendly_GmLinkFlag;
148 } 149 }
149 else { 150 else {
150 line = capturedRange_RegExpMatch(&m, 1); /* Show the URL. */ 151 line = capturedRange_RegExpMatch(&m, 1); /* Show the URL. */