dandavison / delta

A syntax-highlighting pager for git, diff, grep, and blame output
https://dandavison.github.io/delta/
MIT License
21.43k stars 361 forks source link

🐛 Line break only changes aren't shown correctly #1528

Open ajschmidt8 opened 10 months ago

ajschmidt8 commented 10 months ago

If I have a set of files where the only changes are line break additions/subtractions, delta doesn't render the diff correctly.

For example, given these two files:

# file1.txt
some
text
# file2.txt
some

text

When I run delta file1 file2, I get this output:

image

If I invert the file order and run delta file2 file1, I get the same output:

image

Neither output shows any colored indications of line breaks that were added or removed.

I also see this issue with git diff when delta is configured as my diff tool for git.

ggrzybow commented 7 months ago

Related: #1271, #1038.

522 is vaguely related.