summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2022-02-07 12:31:53 +0200
committerJaakko Keränen <jaakko.keranen@iki.fi>2022-02-07 12:31:53 +0200
commit5577e7cfaa5b93a177c6a4707f5442e6843e08e5 (patch)
tree1b6a8596a357c5bd83bc16ec7bb1f9ad035013ea /src
parentb33986c9d13cbea4c91abe5fe68bb4654685c538 (diff)
LinkInfo: Trim extremely long URLs
We don't want to cover the whole view with the URL.
Diffstat (limited to 'src')
-rw-r--r--src/ui/linkinfo.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ui/linkinfo.c b/src/ui/linkinfo.c
index 5102f9b3..e800d6a3 100644
--- a/src/ui/linkinfo.c
+++ b/src/ui/linkinfo.c
@@ -93,7 +93,7 @@ void infoText_LinkInfo(const iGmDocument *doc, iGmLinkId linkId, iString *text_o
93 } 93 }
94 else if (scheme != gemini_GmLinkScheme) { 94 else if (scheme != gemini_GmLinkScheme) {
95 appendCStr_String(text_out, scheme == file_GmLinkScheme ? "" : globe_Icon " "); 95 appendCStr_String(text_out, scheme == file_GmLinkScheme ? "" : globe_Icon " ");
96 append_String(text_out, url); 96 appendCStrN_String(text_out, cstr_String(url), iMin(500, size_String(url)));
97 } 97 }
98 else { 98 else {
99 appendCStr_String(text_out, "\x1b[1m"); 99 appendCStr_String(text_out, "\x1b[1m");