Skip to content

Commit

Permalink
Update handler.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
Patrick-Erichsen committed Dec 23, 2024
1 parent 654608f commit 252f8b2
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions extensions/vscode/src/diff/vertical/handler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -504,9 +504,15 @@ export class VerticalDiffHandler implements vscode.Disposable {
this.editor.document.positionAt(this.editor.document.getText().length),
);

await this.editor.edit((editBuilder) => {
editBuilder.replace(fullRange, meyersDiffLines);
});
await this.editor.edit(
(editBuilder) => {
editBuilder.replace(fullRange, meyersDiffLines);
},
{
undoStopAfter: false,
undoStopBefore: false,
},
);

let currentBlock = {
start: 0,
Expand Down

0 comments on commit 252f8b2

Please sign in to comment.