Content server viewer: Fix searching only showing results from the current chapter onwards. Fixes #2009268 [search in book on content server only returns results beyond current location](https://bugs.launchpad.net/calibre/+bug/2009268)

This commit is contained in:
Kovid Goyal 2023-03-09 15:44:54 +05:30
parent 7e8dc39ff8
commit b529a975e9
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -184,6 +184,7 @@ def search_in_text_of(name):
def queue_next_spine_item(spine_idx, allow_current_name): def queue_next_spine_item(spine_idx, allow_current_name):
spine_idx = spine_idx % wc.current_book.spine.length
name = wc.current_book.spine[spine_idx] name = wc.current_book.spine[spine_idx]
if wc.current_query.query.only_first_match and wc.result_num > 0: if wc.current_query.query.only_first_match and wc.result_num > 0:
send_search_complete() send_search_complete()