We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0121c61 commit 37933beCopy full SHA for 37933be
src/commonMain/kotlin/io/github/petertrr/diffutils/text/DiffRowGenerator.kt
@@ -278,9 +278,8 @@ public class DiffRowGenerator(
278
val origList = inlineDiffSplitter.split(joinedOrig)
279
val revList = inlineDiffSplitter.split(joinedRev)
280
281
- // Copying of `origList` and `revList` is needed because otherwise `wrapInTag` results in ConcurrentModificationException
282
- val diff = diff(origList.toMutableList(), revList.toMutableList(), equalizer)
283
- val inlineDeltas = diff.deltas.asReversed().toMutableList()
+ val diff = diff(origList, revList, equalizer)
+ val inlineDeltas = diff.deltas.reversed()
284
285
for (inlineDelta in inlineDeltas) {
286
val inlineOrig = inlineDelta.source
0 commit comments