Skip to content

Commit b05c8e9

Browse files
committed
Diff Editor v2: Fixes sync update bug
1 parent 0c6209f commit b05c8e9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/vs/editor/browser/widget/diffEditorWidget2/diffModel.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ export class DiffModel extends Disposable implements IDiffEditorViewModel {
7474
}
7575

7676
const textEdits = TextEditInfo.fromModelContentChanges(e.changes);
77-
const result = applyModifiedEdits(this._lastDiff!, textEdits, model.original, model.modified);
77+
const result = applyOriginalEdits(this._lastDiff!, textEdits, model.original, model.modified);
7878
if (result) {
7979
this._lastDiff = result;
8080
this._diff.set(DiffState.fromDiffResult(this._lastDiff), undefined);

0 commit comments

Comments
 (0)