summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2021-01-29 18:47:23 +0200
committerJaakko Keränen <jaakko.keranen@iki.fi>2021-01-29 18:47:23 +0200
commit72dc84b9ee064479786c9c00d0d89416be43cb4f (patch)
treefd0496616f3b2384b7c194ee8a6bcfcb523d72e6 /src
parent0fe58c59f393473b8b9a56c647e84c27051964f5 (diff)
Bookmarks: Remove default Gemini ports
Normalize bookmark URLs by removing the default Gemini ports.
Diffstat (limited to 'src')
-rw-r--r--src/bookmarks.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/bookmarks.c b/src/bookmarks.c
index 9c63710a..be5e426f 100644
--- a/src/bookmarks.c
+++ b/src/bookmarks.c
@@ -155,6 +155,7 @@ void load_Bookmarks(iBookmarks *d, const char *dirPath) {
155 if (isEmpty_Range(&parts.path) && isEmpty_Range(&parts.query)) { 155 if (isEmpty_Range(&parts.path) && isEmpty_Range(&parts.query)) {
156 appendChar_String(&bm->url, '/'); 156 appendChar_String(&bm->url, '/');
157 } 157 }
158 stripDefaultUrlPort_String(&bm->url);
158 } 159 }
159 nextSplit_Rangecc(src, "\n", &line); 160 nextSplit_Rangecc(src, "\n", &line);
160 setRange_String(&bm->title, line); 161 setRange_String(&bm->title, line);