Skip to content

Commit ea29207

Browse files
authored
Fixed wordBreaksForward not using locale (#1089)
1 parent ab086e3 commit ea29207

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ default void wordBreaksForwards(int n, SelectionPolicy selectionPolicy) {
120120
return;
121121
}
122122

123-
BreakIterator wordBreakIterator = BreakIterator.getWordInstance();
123+
BreakIterator wordBreakIterator = BreakIterator.getWordInstance( getLocale() );
124124
wordBreakIterator.setText(getText());
125125
wordBreakIterator.following(getCaretPosition());
126126
for (int i = 1; i < n; i++) {

0 commit comments

Comments
 (0)