Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

diff-highlight settings break whitespace error color in some cases #465

Open
patrikndv opened this issue Mar 25, 2023 · 1 comment
Open

Comments

@patrikndv
Copy link

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.

@scottchiefbaker
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants