Skip to content
This repository has been archived by the owner on Jun 26, 2020. It is now read-only.

Commit

Permalink
Docs: Clarified a comment.
Browse files Browse the repository at this point in the history
  • Loading branch information
scofalik committed Oct 24, 2018
1 parent 623280d commit 87fdbd6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/model/range.js
Original file line number Diff line number Diff line change
Expand Up @@ -525,7 +525,8 @@ export default class Range {

// Below may happen when range contains graveyard element used by split operation.
if ( start.root != end.root ) {
// End position was next to the moved graveyard element and was moved with it. Fix it.
// End position was next to the moved graveyard element and was moved with it.
// Fix it by using old `end` which has proper `root`.
end = this.end.getShiftedBy( -1 );
}

Expand Down

0 comments on commit 87fdbd6

Please sign in to comment.