summaryrefslogtreecommitdiff
path: root/src/ui
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui')
-rw-r--r--src/ui/linkinfo.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/ui/linkinfo.c b/src/ui/linkinfo.c
index fb608d41..89c7fbf3 100644
--- a/src/ui/linkinfo.c
+++ b/src/ui/linkinfo.c
@@ -116,6 +116,10 @@ iBool update_LinkInfo(iLinkInfo *d, const iGmDocument *doc, iGmLinkId linkId, in
116 else { 116 else {
117 appendCStr_String(&str, "\x1b[1m"); 117 appendCStr_String(&str, "\x1b[1m");
118 appendRange_String(&str, parts.host); 118 appendRange_String(&str, parts.host);
119 if (!isEmpty_Range(&parts.port)) {
120 appendCStr_String(&str, ":");
121 appendRange_String(&str, parts.port);
122 }
119 appendCStr_String(&str, "\x1b[0m"); 123 appendCStr_String(&str, "\x1b[0m");
120 appendRange_String(&str, (iRangecc){ parts.path.start, constEnd_String(url) }); 124 appendRange_String(&str, (iRangecc){ parts.path.start, constEnd_String(url) });
121 } 125 }