summaryrefslogtreecommitdiff
path: root/src/ui
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui')
-rw-r--r--src/ui/documentwidget.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ui/documentwidget.c b/src/ui/documentwidget.c
index fd13cd72..b681c2c8 100644
--- a/src/ui/documentwidget.c
+++ b/src/ui/documentwidget.c
@@ -724,13 +724,13 @@ static void drawRun_DrawContext_(void *context, const iGmRun *run) {
724 const iGmDocument *doc = d->widget->doc; 724 const iGmDocument *doc = d->widget->doc;
725 const iGmLinkId linkId = d->widget->hoverLink->linkId; 725 const iGmLinkId linkId = d->widget->hoverLink->linkId;
726 const iString *url = linkUrl_GmDocument(doc, linkId); 726 const iString *url = linkUrl_GmDocument(doc, linkId);
727// const int flags = linkFlags_GmDocument(doc, linkId); 727 const int flags = linkFlags_GmDocument(doc, linkId);
728 iUrl parts; 728 iUrl parts;
729 init_Url(&parts, url); 729 init_Url(&parts, url);
730// desc = cstrFormat_String("\u2192 %s", cstr_String(collect_String(newRange_String(parts.protocol)))); 730// desc = cstrFormat_String("\u2192 %s", cstr_String(collect_String(newRange_String(parts.protocol))));
731 const iString *host = collect_String(newRange_String(parts.host)); 731 const iString *host = collect_String(newRange_String(parts.host));
732 fg = linkColor_GmDocument(doc, linkId); 732 fg = linkColor_GmDocument(doc, linkId);
733 if (!isEmpty_String(host)) { 733 if (!isEmpty_String(host) && flags & userFriendly_GmLinkFlag) {
734// int descWidth = measure_Text(default_FontId, cstr_String(host)).x + gap_UI; 734// int descWidth = measure_Text(default_FontId, cstr_String(host)).x + gap_UI;
735 iRect linkRect = moved_Rect(run->visBounds, origin); 735 iRect linkRect = moved_Rect(run->visBounds, origin);
736// linkRect.size.x += descWidth; 736// linkRect.size.x += descWidth;