summaryrefslogtreecommitdiff
path: root/src/gmdocument.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/gmdocument.c')
-rw-r--r--src/gmdocument.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gmdocument.c b/src/gmdocument.c
index d01ba0b9..1f8ecb75 100644
--- a/src/gmdocument.c
+++ b/src/gmdocument.c
@@ -1365,9 +1365,9 @@ enum iColorId linkColor_GmDocument(const iGmDocument *d, iGmLinkId linkId, enum
1365 const iGmLink *link = link_GmDocument_(d, linkId); 1365 const iGmLink *link = link_GmDocument_(d, linkId);
1366 const int www_GmLinkFlag = http_GmLinkFlag | mailto_GmLinkFlag; 1366 const int www_GmLinkFlag = http_GmLinkFlag | mailto_GmLinkFlag;
1367 if (link) { 1367 if (link) {
1368 const iBool isBad = (link->flags & supportedProtocol_GmLinkFlag) == 0; 1368 const iBool isUnsupported = (link->flags & supportedProtocol_GmLinkFlag) == 0;
1369 if (part == icon_GmLinkPart) { 1369 if (part == icon_GmLinkPart) {
1370 if (isBad) { 1370 if (isUnsupported) {
1371 return tmBadLink_ColorId; 1371 return tmBadLink_ColorId;
1372 } 1372 }
1373 if (link->flags & visited_GmLinkFlag) { 1373 if (link->flags & visited_GmLinkFlag) {
@@ -1394,7 +1394,7 @@ enum iColorId linkColor_GmDocument(const iGmDocument *d, iGmLinkId linkId, enum
1394 : tmLinkTextHover_ColorId; 1394 : tmLinkTextHover_ColorId;
1395 } 1395 }
1396 if (part == domain_GmLinkPart) { 1396 if (part == domain_GmLinkPart) {
1397 if (isBad) { 1397 if (isUnsupported) {
1398 return tmBadLink_ColorId; 1398 return tmBadLink_ColorId;
1399 } 1399 }
1400 return link->flags & www_GmLinkFlag 1400 return link->flags & www_GmLinkFlag