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 f3d1caf commit 0121c61Copy full SHA for 0121c61
src/commonMain/kotlin/io/github/petertrr/diffutils/algorithm/myers/MyersDiffWithLinearSpace.kt
@@ -62,13 +62,11 @@ public class MyersDiffWithLinearSpace<T>(
62
63
while (i < end1 || j < end2) {
64
if (i < end1 && j < end2 && equalizer.test(data.source[i], data.target[j])) {
65
- // script.append(new KeepCommand<>(left.charAt(i)));
66
++i
67
++j
68
} else {
69
// TODO: compress these commands
70
if (end1 - start1 > end2 - start2) {
71
- // script.append(new DeleteCommand<>(left.charAt(i)));
72
if (data.script.isEmpty() ||
73
data.script[data.script.size - 1].endOriginal != i ||
74
data.script[data.script.size - 1].deltaType != DeltaType.DELETE
0 commit comments