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

Commit

Permalink
Code style changes in selection-post-fixer.
Browse files Browse the repository at this point in the history
Co-Authored-By: jodator <jodator@gmail.com>
  • Loading branch information
scofalik and jodator authored Dec 20, 2018
1 parent d1a522f commit 92f9a9f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/model/utils/selection-post-fixer.js
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ function tryFixingNonCollapsedRage( range, schema ) {
const isEndObject = end.nodeBefore && schema.isObject( end.nodeBefore );
const fixedEnd = isEndObject ? end : schema.getNearestSelectionRange( end, 'backward' ).end;

return new Range( fixedStart ? fixedStart.start : start, fixedEnd ? fixedEnd.start : end );
return new Range( fixedStart, fixedEnd );
}
}

Expand Down

0 comments on commit 92f9a9f

Please sign in to comment.