mookid/diffr

Doesn't properly handle changed last line followed by "\ No newline at end of file"

ecm-pushbx opened this issue · 3 comments

Running version 0.1.4 on an amd64 Debian host. The minus line (deleted) is treated as just deletion, all highlighted by diffr, and the \ No newline at end of file line and the following plus line (addition) are both not coloured at all.

mookid commented

hello @ecm-pushbx

$ cat before <(echo @@@@@@) after <(echo @@@@@@)
abcd efgh ijkl@@@@@@
efgh ijkl mnop@@@@@@

image

What would you expect to be different?

It seems that my version is outdated, your test shows the wrong output on my end.

Screenshot_20230806-180342

I mentioned a version originally, but it probably helps more to list the commit ID, which was d20e32f. I tried to update the repo and rebuild the application. This revision seems to change the behaviour as desired: d0ed0b9

mookid commented

cool! thanks for the bug report, and sorry for the slow response.