From 73a08a9e151e7b1954f8d3eff2850cb94f2ee9eb Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Wed, 8 Apr 2020 14:56:10 +0530 Subject: [PATCH] Reset search cache when applying highlight --- src/pyj/read_book/iframe.pyj | 1 + 1 file changed, 1 insertion(+) diff --git a/src/pyj/read_book/iframe.pyj b/src/pyj/read_book/iframe.pyj index 860fae7e13..e2ac24a262 100644 --- a/src/pyj/read_book/iframe.pyj +++ b/src/pyj/read_book/iframe.pyj @@ -648,6 +648,7 @@ class IframeBoss: window.getSelection().removeAllRanges() self.annot_id_uuid_map[annot_id] = data.uuid self.send_message('annotations', type='highlight-applied', uuid=data.uuid, ok=annot_id is not None, bounds=bounds) + reset_find_caches() else: console.log('Ignoring annotations message to iframe with unknown type: ' + data.type)