mirror of
https://github.com/voideditor/void
synced 2026-05-24 09:58:23 +00:00
Fix newline bug
This commit is contained in:
parent
20056f209e
commit
33c3ef6751
1 changed files with 3 additions and 3 deletions
|
|
@ -86,9 +86,9 @@ export const findDiffs = (oldText: string, newText: string): BaseDiff[] => {
|
|||
// Add any remaining blocks after the loop ends
|
||||
if (insertedBlock.length > 0 || deletedBlock.length > 0) {
|
||||
blocks.push({
|
||||
code: reprBlock.join('\n'),
|
||||
deletedCode: deletedBlock.join('\n'),
|
||||
insertedCode: insertedBlock.join('\n'),
|
||||
code: reprBlock.join(''),
|
||||
deletedCode: deletedBlock.join(''),
|
||||
insertedCode: insertedBlock.join(''),
|
||||
deletedRange: new vscode.Range(deletedStart, 0, deletedLine, Number.MAX_SAFE_INTEGER),
|
||||
insertedRange: new vscode.Range(insertedStart, 0, insertedLine, Number.MAX_SAFE_INTEGER),
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in a new issue