gitui icon indicating copy to clipboard operation
gitui copied to clipboard

Wrong diff highlighting for "no newline at end of file"

Open knuesel opened this issue 1 year ago • 0 comments

When a file without newline at the end is "fixed" by adding a newline, the diff view shows the message "\ No newline at end of file" in green:

image

This is a bit misleading, it suggests that the change was to remove the newline rather than add it.

For comparison here's how it looks with the default git diff:

image

(tested on gitui 0.26.1)

knuesel avatar May 09 '24 09:05 knuesel