-
Notifications
You must be signed in to change notification settings - Fork 398
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
🐛 Trailing whitespace in otherwise empty line is not highlighted #212
Comments
Agreed, this needs addressing. Thanks @FranklinYu. |
Linking similar bug pointed out by @mk12 in #205 (comment), which is related to this one. |
Thanks again @FranklinYu, the issue with delta failing to highlight added whitespace on a blank line is fixed in master (it was a straight-out bug -- a divide-by-zero when calculating the distance between the two lines in terms of edit operations). I still need to fix the problem of blank line additions/removals being invisible when there is no background color, perhaps by adding a space. #179 (comment) is relevant (discussion about whether delta can drop the space in the first column that it currently emits as a replacement for the |
Moving remaining discussion to #179 |
Steps to reproduce:
Cargo.toml
.git diff
Git raw diff:
Screenshot of Git raw diff:
Screenshot of Delta diff:
Note that, as comparison, trailing whitespace is rendered correctly. I would like a whitespace-only line to look the same.
Environments
The text was updated successfully, but these errors were encountered: