From ad6252ac41fda93edccc556e115a78f57517a321 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sun, 11 Dec 2022 21:36:52 +0530 Subject: [PATCH] Content server viewer: Fix CPU consumption when searching even after all matches are found --- src/pyj/read_book/search_worker.pyj | 1 - 1 file changed, 1 deletion(-) diff --git a/src/pyj/read_book/search_worker.pyj b/src/pyj/read_book/search_worker.pyj index ff80896641..2a6d61b9f8 100644 --- a/src/pyj/read_book/search_worker.pyj +++ b/src/pyj/read_book/search_worker.pyj @@ -182,7 +182,6 @@ def search_in_text_of(name): def queue_next_spine_item(spine_idx, allow_current_name): - spine_idx %= wc.current_book.spine.length name = wc.current_book.spine[spine_idx] if not name or (not allow_current_name and name is wc.current_query.current_name): send_search_complete()