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 }