Always set FindWrapsAroundDocument in WebKitSearch

We accidentally set it to never wrap with the wrap-search option
removal, but we want to *always* wrap.
This commit is contained in:
Florian Bruhin 2016-07-12 17:28:59 +02:00
parent 54c00deb5b
commit 40455b2692

View File

@ -87,7 +87,7 @@ class WebKitSearch(browsertab.AbstractSearch):
def search(self, text, *, ignore_case=False, reverse=False,
result_cb=None):
flags = QWebPage.FindFlags(0)
flags = QWebPage.FindWrapsAroundDocument
if ignore_case == 'smart':
if not text.islower():
flags |= QWebPage.FindCaseSensitively