Skip to content

Commit

Permalink
Merge pull request #96 from NikolayXHD/master
Browse files Browse the repository at this point in the history
diff: alter foreground color as well
  • Loading branch information
sachaos committed Sep 1, 2023
2 parents 16f8831 + c59e27e commit 161a2f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion snapshot.go
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ func DiffPrettyText(diffs []diffmatchpatch.Diff) string {
if unicode.IsSpace(c) {
_, _ = buff.WriteRune(c)
} else {
_, _ = buff.WriteString(color.New(color.BgGreen).Sprintf(string(c)))
_, _ = buff.WriteString(color.New(color.FgBlack).Sprintf(color.New(color.BgGreen).Sprintf(string(c))))
}
}
case diffmatchpatch.DiffEqual:
Expand Down

0 comments on commit 161a2f7

Please sign in to comment.