summaryrefslogtreecommitdiff
path: root/src/gmdocument.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/gmdocument.c')
-rw-r--r--src/gmdocument.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/gmdocument.c b/src/gmdocument.c
index 5e14c55b..0b792d56 100644
--- a/src/gmdocument.c
+++ b/src/gmdocument.c
@@ -208,10 +208,12 @@ static iRangecc addLink_GmDocument_(iGmDocument *d, iRangecc line, iGmLinkId *li
208 } 208 }
209 } 209 }
210 /* Check if visited. */ { 210 /* Check if visited. */ {
211 link->when = urlVisitTime_History(history_App(), absoluteUrl_String(&d->url, 211 const iString *absUrl = absoluteUrl_String(&d->url, &link->url);
212 &link->url)); 212 if (cmpString_String(absUrl, &d->url)) {
213 if (isValid_Time(&link->when)) { 213 link->when = urlVisitTime_History(history_App(), absUrl);
214 link->flags |= visited_GmLinkFlag; 214 if (isValid_Time(&link->when)) {
215 link->flags |= visited_GmLinkFlag;
216 }
215 } 217 }
216 } 218 }
217 pushBack_PtrArray(&d->links, link); 219 pushBack_PtrArray(&d->links, link);