diff-so-fancy icon indicating copy to clipboard operation
diff-so-fancy copied to clipboard

diff-highlight settings break whitespace error color in some cases

Open patrikndv opened this issue 2 years ago • 1 comments

When using the diff-highlight settings, the color.diff.whitespace color is sometimes overridden because the trailing whitespace error becomes colored by highlight instead. This seems to happen at least when the block of change is a single line that is changed to introduce whitespace error. In other words, something like:

-this is a changed line
+this is a changed line(WHITESPACE)

This will color the trailing whitespace in highlight instead of color.diff.whitespace.

patrikndv avatar Mar 25 '23 22:03 patrikndv

Are you able to provide a diff file the exhibits this behavior?

scottchiefbaker avatar Jun 08 '23 21:06 scottchiefbaker