From 53702454a80514e94211a5c8dc9b8676536895c0 Mon Sep 17 00:00:00 2001 From: kunfei Date: Sat, 16 Apr 2022 12:07:31 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/src/main/java/io/legado/app/ui/book/read/page/ReadView.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/io/legado/app/ui/book/read/page/ReadView.kt b/app/src/main/java/io/legado/app/ui/book/read/page/ReadView.kt index 4aa71f670..e919798f8 100644 --- a/app/src/main/java/io/legado/app/ui/book/read/page/ReadView.kt +++ b/app/src/main/java/io/legado/app/ui/book/read/page/ReadView.kt @@ -322,9 +322,9 @@ class ReadView(context: Context, attrs: AttributeSet) : if (ci == start) { startPos.lineIndex = index startPos.charIndex = j - } else if (ci == end) { + } else if (ci == end - 1) { endPos.lineIndex = index - endPos.charIndex = j - 1 + endPos.charIndex = j return@run } ci++