Skip to content

Conversation

@deathbeam
Copy link
Collaborator

Remove the bundled diff-match-patch Lua port and replace its usage in the diff utility with a simpler, line-based matching and replacement algorithm. This reduces code complexity and removes a large vendored file. The new approach uses context-aware line matching to apply hunks, which should be sufficient for the plugin's needs.

Closes #1490

Remove the bundled diff-match-patch Lua port and replace its usage in
the diff utility with a simpler, line-based matching and replacement
algorithm. This reduces code complexity and removes a large vendored
file. The new approach uses context-aware line matching to apply hunks,
which should be sufficient for the plugin's needs.

Closes CopilotC-Nvim#1490

Signed-off-by: Tomas Slusny <[email protected]>
@deathbeam deathbeam force-pushed the remove-diff-match-patch branch from a416ed2 to 6c4c705 Compare November 19, 2025 07:43
@deathbeam deathbeam merged commit d34aa9e into CopilotC-Nvim:main Nov 19, 2025
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Unified diff application is frequently incorrect: wrong locations, partial matches, formatting corruption

1 participant