mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
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:
parent
7e8dc39ff8
commit
b529a975e9
@ -184,6 +184,7 @@ def search_in_text_of(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]
|
||||
if wc.current_query.query.only_first_match and wc.result_num > 0:
|
||||
send_search_complete()
|
||||
|
Loading…
x
Reference in New Issue
Block a user