In patches, it is common to have a trailing line like
--
2.34.1 # or something similar
This is part of the patch when previewing, and it gets interpreted as a deletion line in the renderers bat, delta, and diff-so-fancy.
How to reproduce:
Choose one of these renderers on the "Edit Config" screen and select a patchset in a list/the bookmarked. You'll probably see something like the screenshots below.
Expected behavior:
This -- line should be excluded from the "diffing" and not be understood and rendered as a deletion. These two ending lines are (maybe) irrelevant to the previewing, so we can also avoid this behavior by removing those.
Screenshots
bat
delta
diff-so-fancy (note that there is also a white cursor, which I interpret as a blank line addition, but can't confirm it)
Description:
In patches, it is common to have a trailing line like
This is part of the patch when previewing, and it gets interpreted as a deletion line in the renderers
bat
,delta
, anddiff-so-fancy
.How to reproduce:
Choose one of these renderers on the "Edit Config" screen and select a patchset in a list/the bookmarked. You'll probably see something like the screenshots below.
Expected behavior:
This
--
line should be excluded from the "diffing" and not be understood and rendered as a deletion. These two ending lines are (maybe) irrelevant to the previewing, so we can also avoid this behavior by removing those.Screenshots
bat
delta
diff-so-fancy
(note that there is also a white cursor, which I interpret as a blank line addition, but can't confirm it)Setup: