Skip to content

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

Open
chressie wants to merge 1 commit into9fans:mainfrom
chressie:acmego
Open

acmego: fix line deletions at beginning of a file#128
chressie wants to merge 1 commit into9fans:mainfrom
chressie:acmego

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