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

Closed
wants to merge 1 commit into 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.

myers_diff doesn't emit the last blank line, so I made the fall-back path do the same.

This was originally intended to fix #702, but fixes crash with sample_files/big_text_hunk_?.txt on 0.59.0. It probably fixes #739.

@MingcongBai
Copy link

Can confirm that this fixes the aforementioned crash on 0.59.0.

See AOSC-Dev/aosc-os-abbs#7192.

myers_diff doesn't emit the last blank line, so I made the fall-back path do
the same.

This was originally intended to fix Wilfred#702, but fixes crash with
sample_files/big_text_hunk_?.txt on 0.59.0. It probably fixes Wilfred#739.
@yuja
Copy link
Contributor Author

yuja commented Jul 31, 2024

Superseded by 1ac9553 and other fixes.

@yuja yuja closed this Jul 31, 2024
@yuja yuja deleted the push-mpmruoptmymr branch July 31, 2024 10:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants