summaryrefslogtreecommitdiff
path: root/src/ui/linkinfo.c
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2021-12-23 13:07:52 +0200
committerJaakko Keränen <jaakko.keranen@iki.fi>2021-12-23 13:07:52 +0200
commitd2aff7411994d66e216b8e6ee55a29e38e715e19 (patch)
tree998b7599cbfb2305452e775068cfc9061ba8b119 /src/ui/linkinfo.c
parent3db345897d13df3657e2c6fd90f3bfdeb81df4a0 (diff)
LinkInfo: Show port, too
Diffstat (limited to 'src/ui/linkinfo.c')
-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 }