mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-08 10:44:09 -04:00
Fix find not working backwards across loads
This commit is contained in:
parent
5e05b450a3
commit
3d4dae9d08
@ -409,7 +409,7 @@ class IframeBoss:
|
|||||||
def find(self, data, from_load):
|
def find(self, data, from_load):
|
||||||
if data.searched_in_spine:
|
if data.searched_in_spine:
|
||||||
window.getSelection().removeAllRanges()
|
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':
|
if current_layout_mode() is not 'flow':
|
||||||
snap_to_selection()
|
snap_to_selection()
|
||||||
else:
|
else:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user