We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 11e1e94 commit be7b9dfCopy full SHA for be7b9df
1 file changed
richtextfx/src/main/java/org/fxmisc/richtext/CaretSelectionBind.java
@@ -322,8 +322,9 @@ else if(pos >= sel.getEnd())
322
void moveToAreaEnd(NavigationActions.SelectionPolicy selectionPolicy);
323
324
default void selectParagraph() {
325
- moveToParStart(NavigationActions.SelectionPolicy.CLEAR);
326
- moveToParEnd(NavigationActions.SelectionPolicy.ADJUST);
+ int parStartPosition = getPosition() - getColumnPosition();
+ int parEndPosition = parStartPosition + getArea().getParagraphLength(getParagraphIndex());
327
+ selectRange(parStartPosition, parEndPosition);
328
}
329
330
/**
0 commit comments