-
Notifications
You must be signed in to change notification settings - Fork 395
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
🐛 Wrong highlighting #439
Comments
Thanks @ahmadie, this looks like an interesting one. Could you post the raw diff that's producing this as a text comment? |
//could run using hope it helps =D |
Thanks! |
@dandavison would it make sense to merge this with #246 so all similar issues can be tracked in the same place? |
Just a remark : here diffr is doing the job perfectly: I usually prefer the algorithm used by diffr than the one of delta as it is more precise, especially when a large block have been moved and modified (sometime even too much, and it would benefit from a threshold on the portion of modified words to stop considering word by word diff and show the whole line changed). Maybe diffr could be used in delta as a library (it is also in Rust and the interface and library are well separated). |
This is most likely same as the situation in #522 (comment), discussed in more detail on #13, and now fixable by configuring colors. When the change is "large" enough (--max-line-distance), delta stops emphasizing parts and just colors uniformly (plus-style/minus-style). |
Show row diff vs delta diff, clearly something is wrong, I also stashed every thing so if you need more info from the command line to please advice.
Delta --version 0.4.4
The text was updated successfully, but these errors were encountered: