diff --git a/unified.go b/unified.go index b7d85cf..10f7e4b 100644 --- a/unified.go +++ b/unified.go @@ -99,7 +99,7 @@ func ToUnified(from, to string, content string, edits []TextEdit) Unified { //direct extension case h != nil && start <= last+gap: //within range of previous lines, add the joiners - addEqualLines(h, lines, last, start) + toLine += addEqualLines(h, lines, last, start) default: //need to start a new hunk if h != nil {