From 7d1947e975e412c0b0f8f35135c68901d57da47c Mon Sep 17 00:00:00 2001 From: gedoor Date: Sun, 9 Jan 2022 20:03:42 +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/model/localBook/TextFile.kt | 1 + 1 file changed, 1 insertion(+) diff --git a/app/src/main/java/io/legado/app/model/localBook/TextFile.kt b/app/src/main/java/io/legado/app/model/localBook/TextFile.kt index bbafc0d04..206c85cdd 100644 --- a/app/src/main/java/io/legado/app/model/localBook/TextFile.kt +++ b/app/src/main/java/io/legado/app/model/localBook/TextFile.kt @@ -263,6 +263,7 @@ class TextFile(private val book: Book) { bufferStart + length - strLength, bufferStart + length ) + length = bufferStart + length - strLength bufferStart = strLength break }