Skip to content

Commit

Permalink
Fix diff newline error
Browse files Browse the repository at this point in the history
  • Loading branch information
mkchoi212 committed Dec 31, 2017
1 parent 7068c59 commit 7456d0a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion diff.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@ import (

func (c *Conflict) diff() []string {
dmp := diffmatchpatch.New()
diffs := dmp.DiffMain(strings.Join(c.CurrentLines, "\n"), strings.Join(c.ForeignLines, "\n"), false)
diffs := dmp.DiffMain(strings.Join(c.CurrentLines, ""), strings.Join(c.ForeignLines, ""), false)
return []string{dmp.DiffPrettyText(diffs)}
}

0 comments on commit 7456d0a

Please sign in to comment.