Skip to content

acmego: fix line deletions at beginning of a file #128

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

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