Skip to content
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

Fix text diff of large chunks to not emit last blank line #731

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

Conversation

yuja
Copy link
Contributor

@yuja yuja commented Jun 13, 2024

This fixes crash in inline printer, which assumes that hunk lines are within range. I'm not pretty sure if this assumption holds anytime, but myers_diff appears not emitting the last blank line, so I made the fall-back path do the same.

This will hopefully fix #702.

This fixes crash in inline printer, which assumes that hunk lines are within
range. I'm not pretty sure if this assumption holds anytime, but myers_diff
appears not emitting the last blank line, so I made the fall-back path do the
same.

This will hopefully fix Wilfred#702.
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.

index out of bounds: the len is X but the index is X', src/display/inline.rs:115:21
1 participant