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 some issues with suggestions #437

Merged
merged 5 commits into from
Feb 3, 2025
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
lint
mcy committed Jan 29, 2025
commit caf1ad98e9ec394f827a8060d4c1167e69a3867b
2 changes: 1 addition & 1 deletion experimental/report/diff.go
Original file line number Diff line number Diff line change
@@ -104,7 +104,7 @@ func unifiedDiff(span Span, edits []Edit) (Span, []hunk) {

var out []hunk
var prevHunk int
parts(func(i int, edits []Edit) bool {
parts(func(_ int, edits []Edit) bool {
// First, figure out the start and end of the modified region.
start, end := edits[0].Start, edits[0].End
for _, edit := range edits[1:] {