Skip to content

Commit

Permalink
ManualEdit: Fix bug when syncing last range
Browse files Browse the repository at this point in the history
  • Loading branch information
vidartf committed May 7, 2018
1 parent fee8b66 commit c49c68a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/nbdime/src/common/mergeview.ts
Original file line number Diff line number Diff line change
Expand Up @@ -267,9 +267,9 @@ class DiffView {
}
if (start < last) {
edit.getDoc().replaceRange(
newLines.slice(start, end).join(''),
newLines.slice(start, last).join(''),
CodeMirror.Pos(start, 0),
CodeMirror.Pos(end, 0),
CodeMirror.Pos(last, 0),
'syncModel'
);
}
Expand Down

0 comments on commit c49c68a

Please sign in to comment.