Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Bytekeeper committed May 4, 2017
1 parent a5bfab1 commit 8471576
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/main/java/org/stt/gui/jfx/text/CommandHighlighter.java
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,9 @@ public void update() {
EnglishCommandsLexer lexer = new EnglishCommandsLexer(input);
TokenStream tokenStream = new CommonTokenStream(lexer);
EnglishCommandsParser parser = new EnglishCommandsParser(tokenStream);
textArea.clearStyle(0, textArea.getLength());
if (textArea.getLength() > 0) {
textArea.clearStyle(0, textArea.getLength());
}
parser.command().accept(visitor);
}

Expand Down

0 comments on commit 8471576

Please sign in to comment.