Skip to content

refactor(diff): improve line matching and replacement logic#1329

Merged
deathbeam merged 1 commit intoCopilotC-Nvim:mainfrom
deathbeam:improve-lin-matching
Aug 14, 2025
Merged

refactor(diff): improve line matching and replacement logic#1329
deathbeam merged 1 commit intoCopilotC-Nvim:mainfrom
deathbeam:improve-lin-matching

Conversation

@deathbeam
Copy link
Copy Markdown
Collaborator

Refactors diff application logic to use a new utils.split_lines function for consistent line splitting. Applies diffs from bottom to top to preserve line numbering and ensures correct replacement of lines in buffers. This improves accuracy when applying multiple diffs to the same file and enhances code readability.

Refactors diff application logic to use a new utils.split_lines function for
consistent line splitting. Applies diffs from bottom to top to preserve line
numbering and ensures correct replacement of lines in buffers. This improves
accuracy when applying multiple diffs to the same file and enhances code
readability.
@deathbeam deathbeam added bug Something isn't working refactor labels Aug 14, 2025
@deathbeam deathbeam merged commit 6d6e390 into CopilotC-Nvim:main Aug 14, 2025
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working refactor

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant