mirror of
git://github.com/kovidgoyal/calibre.git
synced 2025-12-28 00:55:31 +01:00
Fix find not working backwards across loads
This commit is contained in:
parent
5e05b450a3
commit
3d4dae9d08
1 changed files with 1 additions and 1 deletions
|
|
@ -409,7 +409,7 @@ def scroll_to_anchor(self, frag):
|
|||
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:
|
||||
|
|
|
|||
Loading…
Reference in a new issue