summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2021-05-29 15:12:21 +0300
committerJaakko Keränen <jaakko.keranen@iki.fi>2021-05-29 15:12:21 +0300
commit0bee8772e3bb7e29a78cf98a1ca84926b93df77f (patch)
tree0d83795c2c5c8aea69d74a72ad418ecee4ff3bc6
parent1777c26a44daa5b87c7b88dd611008aaa59576eb (diff)
DocumentWidget: Looking up URLs from history
URLs in the history are in decoded and NFC normalized form, except for spaces which are stored as %20.
-rw-r--r--src/ui/documentwidget.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ui/documentwidget.c b/src/ui/documentwidget.c
index f37b2b6d..6184a75a 100644
--- a/src/ui/documentwidget.c
+++ b/src/ui/documentwidget.c
@@ -1591,7 +1591,7 @@ static void updateFromCachedResponse_DocumentWidget_(iDocumentWidget *d, float n
1591} 1591}
1592 1592
1593static iBool updateFromHistory_DocumentWidget_(iDocumentWidget *d) { 1593static iBool updateFromHistory_DocumentWidget_(iDocumentWidget *d) {
1594 const iRecentUrl *recent = findUrl_History(d->mod.history, d->mod.url); 1594 const iRecentUrl *recent = findUrl_History(d->mod.history, withSpacesEncoded_String(d->mod.url));
1595 if (recent && recent->cachedResponse) { 1595 if (recent && recent->cachedResponse) {
1596 updateFromCachedResponse_DocumentWidget_(d, recent->normScrollY, recent->cachedResponse); 1596 updateFromCachedResponse_DocumentWidget_(d, recent->normScrollY, recent->cachedResponse);
1597 return iTrue; 1597 return iTrue;