delta icon indicating copy to clipboard operation
delta copied to clipboard

🐛 Line break only changes aren't shown correctly

Open ajschmidt8 opened this issue 2 years ago • 1 comments

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.

ajschmidt8 avatar Aug 28 '23 15:08 ajschmidt8

Related: #1271, #1038.

#522 is vaguely related.

ggrzybow avatar Dec 04 '23 21:12 ggrzybow