Skip to content

Commit 25ebc97

Browse files
authored
Fixed line selection off not updating (#1066)
1 parent f35220f commit 25ebc97

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

richtextfx/src/main/java/org/fxmisc/richtext/LineSelection.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,4 +44,11 @@ public void selectCurrentLine()
4444
int end = getArea().getAbsolutePosition( p, getArea().getCurrentLineEndInParargraph() );
4545
super.selectRange( start, (end > start) ? end : start+1 ); // +1 for empty lines
4646
}
47+
48+
@Override
49+
public void deselect()
50+
{
51+
int startPos = getStartPosition();
52+
super.selectRange( startPos, startPos );
53+
}
4754
}

0 commit comments

Comments
 (0)