Skip to content

Commit 924234f

Browse files
authored
Merge pull request #3569 from dotty-staging/better-diff-colors
-Xprint-diff-del: make diffs more readable by using bold
2 parents 6ac9d10 + 183c670 commit 924234f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/src/dotty/tools/dotc/util/DiffUtil.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ object DiffUtil {
112112
val (spaces, rest) = str.span(_ == '\n')
113113
if (spaces.isEmpty) {
114114
val (text, rest2) = str.span(_ != '\n')
115-
color + text + Console.RESET + bgColored(rest2, color)
115+
Console.BOLD + color + text + Console.RESET + bgColored(rest2, color)
116116
} else spaces + bgColored(rest, color)
117117
}
118118
}

0 commit comments

Comments
 (0)