Skip to content

Commit

Permalink
Fix regression of 812 due to PR 886 (#889)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jugen authored Jan 3, 2020
1 parent 14f9479 commit 2a7a0ee
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -958,7 +958,7 @@ public IndexRange getParagraphSelection(Selection selection, int paragraph) {
int startPar = selection.getStartParagraphIndex();
int endPar = selection.getEndParagraphIndex();

if(paragraph < startPar || paragraph > endPar) {
if(selection.getLength() == 0 || paragraph < startPar || paragraph > endPar) {
return EMPTY_RANGE;
}

Expand Down

0 comments on commit 2a7a0ee

Please sign in to comment.