Fix find not working backwards across loads

This commit is contained in:
Kovid Goyal 2019-08-26 09:09:57 +05:30
parent 5e05b450a3
commit 3d4dae9d08
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -409,7 +409,7 @@ class IframeBoss:
def find(self, data, from_load):
if data.searched_in_spine:
window.getSelection().removeAllRanges()
if window.find(data.text, False, data.backwards):
if window.find(data.text, False, data.backwards, from_load and data.backwards):
if current_layout_mode() is not 'flow':
snap_to_selection()
else: