Skip to content

Conversation

@chressie
Copy link

If the formatter deletes 1 (or more) lines in the beginning of a file, the corresponding diff output records this with for example "1d0".

Until now, the trailing "0" tripped off the logic and the code just didn't apply such a deletion. This is now fixed by ignoring the trailing "0" for line deletion markers.

If the formatter deletes 1 (or more) lines in the beginning of a file,
the corresponding diff output records this with for example "1d0".

Until now, the trailing "0" tripped off the logic and the code just
didn't apply such a deletion. This is now fixed by ignoring the trailing
"0" for line deletion markers.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant