Skip to content

Commit 8a51f65

Browse files
authored
Merge pull request #866 from Jugen/empty_line_highlighter_fix
Fixed not highlighting from beginning of line after adding text when
2 parents b17f724 + 5602f69 commit 8a51f65

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1194,7 +1194,7 @@ public void setLineHighlighterOn( boolean show )
11941194

11951195
Consumer<Bounds> caretListener = b ->
11961196
{
1197-
if ( b.getMinY() != caretPrevY ) {
1197+
if ( b.getMinY() != caretPrevY || getCaretColumn() == 1 ) {
11981198
adjustHighlighterRange.run();
11991199
caretPrevY = b.getMinY();
12001200
}

0 commit comments

Comments
 (0)