sergi / go-diff

Diff, match and patch text in Go
MIT License
1.81k stars 207 forks source link

[BUG] Strange diff bug i can not explain #143

Closed ogios closed 4 months ago

ogios commented 4 months ago

diffing 2 codes: code1 code2

reproduce: main.go

and some Diffs are not supposed to be existed but they do, and in the wrong place: image

ogios commented 4 months ago

just clone the latest repo, commit a674b30 fixed it but it's not tagged