diff options
author | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-06-24 22:04:03 +0300 |
---|---|---|
committer | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-06-24 22:04:03 +0300 |
commit | 3889d10ab44a0f4d03ae9a20b2ae93022ac0f33a (patch) | |
tree | 310e5c814b90b1df44802376292bb965042368b3 /src | |
parent | c19b0bbb4cc7d5e373058bd13bec2c9691695b82 (diff) |
GmDocument: Mark opened URLs as visited
Set a formatting flag on opened links.
Diffstat (limited to 'src')
-rw-r--r-- | src/gmdocument.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gmdocument.c b/src/gmdocument.c index cde714e7..002494b6 100644 --- a/src/gmdocument.c +++ b/src/gmdocument.c | |||
@@ -1423,6 +1423,9 @@ iBool updateOpenURLs_GmDocument(iGmDocument *d) { | |||
1423 | const iBool isOpen = contains_StringSet(d->openURLs, &link->url); | 1423 | const iBool isOpen = contains_StringSet(d->openURLs, &link->url); |
1424 | if (isOpen ^ ((link->flags & isOpen_GmLinkFlag) != 0)) { | 1424 | if (isOpen ^ ((link->flags & isOpen_GmLinkFlag) != 0)) { |
1425 | iChangeFlags(link->flags, isOpen_GmLinkFlag, isOpen); | 1425 | iChangeFlags(link->flags, isOpen_GmLinkFlag, isOpen); |
1426 | if (isOpen) { | ||
1427 | link->flags |= visited_GmLinkFlag; | ||
1428 | } | ||
1426 | wasChanged = iTrue; | 1429 | wasChanged = iTrue; |
1427 | } | 1430 | } |
1428 | } | 1431 | } |