From 0bee8772e3bb7e29a78cf98a1ca84926b93df77f Mon Sep 17 00:00:00 2001 From: Jaakko Keränen Date: Sat, 29 May 2021 15:12:21 +0300 Subject: 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. --- src/ui/documentwidget.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/ui') 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 } static iBool updateFromHistory_DocumentWidget_(iDocumentWidget *d) { - const iRecentUrl *recent = findUrl_History(d->mod.history, d->mod.url); + const iRecentUrl *recent = findUrl_History(d->mod.history, withSpacesEncoded_String(d->mod.url)); if (recent && recent->cachedResponse) { updateFromCachedResponse_DocumentWidget_(d, recent->normScrollY, recent->cachedResponse); return iTrue; -- cgit v1.2.3