Fix bug when selection end is less than start

This commit is contained in:
Daniel Imms
2017-06-07 19:17:38 -07:00
parent d56a611a19
commit e88a9ffd89
3 changed files with 0 additions and 18 deletions
-3
View File
@@ -73,9 +73,6 @@ export class SelectionModel {
// Use the selection start if the end doesn't exist or they're reversed
if (!this.selectionEnd || this._areSelectionValuesReversed()) {
if (this.selectionStartLength === 0) {
return null;
}
return [this.selectionStart[0] + this.selectionStartLength, this.selectionStart[1]];
}