Skip to content

Commit

Permalink
Fix support for PROP_SUPPORT_PARSEDLINE, fixes #309
Browse files Browse the repository at this point in the history
  • Loading branch information
gnodet committed Sep 20, 2018
1 parent 68d6943 commit 80aa625
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ public LineReaderBuilder highlighter(Highlighter highlighter) {
public LineReaderBuilder parser(Parser parser) {
if (parser != null) {
try {
if (!Boolean.parseBoolean(LineReader.PROP_SUPPORT_PARSEDLINE)
if (!Boolean.getBoolean(LineReader.PROP_SUPPORT_PARSEDLINE)
&& !(parser.parse("", 0) instanceof CompletingParsedLine)) {
Log.warn("The Parser of class " + parser.getClass().getName() + " does not support the CompletingParsedLine interface. " +
"Completion with escaped or quoted words won't work correctly.");
Expand Down

0 comments on commit 80aa625

Please sign in to comment.