RichTextFX
RichTextFX copied to clipboard
bug report: Chosen line highlighter color isn't used when there is only 1 line.
Expected Behavior
The chosen color (hsb(0, 0, 1, 0.1)) should be used.
Actual Behavior
The default color (yellow) is used.
Demo
1th line, 3 lines total.

1th line, 1 lines total.

Environment info:
- RichTextFX Version: 0.10.9
- Operating System: Linux
- Java version: 17
I found a workaround.
This triggers the bug.
codeArea.setLineHighlighterOn(true);
codeArea.setLineHighlighterFill(Color.hsb(0, 0, 1, 0.1));
This works fine.
codeArea.setLineHighlighterFill(Color.hsb(0, 0, 1, 0.1));
codeArea.setLineHighlighterOn(true);