From b10a85e9489191640c8831e46078e12067b96397 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Thu, 10 Dec 2020 09:35:50 +0530 Subject: [PATCH] ... --- src/pyj/read_book/find.pyj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pyj/read_book/find.pyj b/src/pyj/read_book/find.pyj index 328fe00301..5fb844d87b 100644 --- a/src/pyj/read_book/find.pyj +++ b/src/pyj/read_book/find.pyj @@ -63,7 +63,7 @@ def tts_data(text_node, offset): marked_text.push(text[:start]) marked_text.push(start + offset_in_flat_text) marked_text.push(match[0]) - last = start + match.length + last = start + match[0].length if last is None: marked_text.push(text) else: