diff options
Diffstat (limited to 'src/bookmarks.c')
-rw-r--r-- | src/bookmarks.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/bookmarks.c b/src/bookmarks.c index 6600ee4d..eff0146d 100644 --- a/src/bookmarks.c +++ b/src/bookmarks.c | |||
@@ -85,7 +85,7 @@ void load_Bookmarks(iBookmarks *d, const char *dirPath) { | |||
85 | if (open_File(f, readOnly_FileMode | text_FileMode)) { | 85 | if (open_File(f, readOnly_FileMode | text_FileMode)) { |
86 | const iRangecc src = range_Block(collect_Block(readAll_File(f))); | 86 | const iRangecc src = range_Block(collect_Block(readAll_File(f))); |
87 | iRangecc line = iNullRange; | 87 | iRangecc line = iNullRange; |
88 | while (nextSplit_Rangecc(&src, "\n", &line)) { | 88 | while (nextSplit_Rangecc(src, "\n", &line)) { |
89 | /* Skip empty lines. */ { | 89 | /* Skip empty lines. */ { |
90 | iRangecc ln = line; | 90 | iRangecc ln = line; |
91 | trim_Rangecc(&ln); | 91 | trim_Rangecc(&ln); |
@@ -100,9 +100,9 @@ void load_Bookmarks(iBookmarks *d, const char *dirPath) { | |||
100 | initSeconds_Time(&bm->when, strtod(line.start, &endPos)); | 100 | initSeconds_Time(&bm->when, strtod(line.start, &endPos)); |
101 | line.start = skipSpace_CStr(endPos); | 101 | line.start = skipSpace_CStr(endPos); |
102 | setRange_String(&bm->url, line); | 102 | setRange_String(&bm->url, line); |
103 | nextSplit_Rangecc(&src, "\n", &line); | 103 | nextSplit_Rangecc(src, "\n", &line); |
104 | setRange_String(&bm->title, line); | 104 | setRange_String(&bm->title, line); |
105 | nextSplit_Rangecc(&src, "\n", &line); | 105 | nextSplit_Rangecc(src, "\n", &line); |
106 | setRange_String(&bm->tags, line); | 106 | setRange_String(&bm->tags, line); |
107 | insert_Bookmarks_(d, bm); | 107 | insert_Bookmarks_(d, bm); |
108 | } | 108 | } |