Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master' into support/1.5.0
Browse files Browse the repository at this point in the history
  • Loading branch information
igordmn committed Aug 28, 2023
2 parents 8427c25 + 45079fb commit f3f8b8d
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,9 @@ fun java.io.File.toProjectFile(): File = object : File {

override fun get(index: Int): String {
val position = lineRange(index)
val slice = byteBuffer.slice(position.first, position.last - position.first)
byteBuffer.position(position.first)
val slice = byteBuffer.slice()
slice.limit(position.last - position.first)
return StandardCharsets.UTF_8.decode(slice).toString()
}

Expand Down

0 comments on commit f3f8b8d

Please sign in to comment.