Skip to content

Commit

Permalink
Command completion with quoted value fails: org.jline.reader.EOFError,
Browse files Browse the repository at this point in the history
…fixes #257
  • Loading branch information
gnodet committed Apr 19, 2018
1 parent da6f908 commit 6cc608c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ public ParsedLine parse(final String line, final int cursor, ParseContext contex
if (eofOnEscapedNewLine && isEscapeChar(line, line.length() - 1)) {
throw new EOFError(-1, -1, "Escaped new line", "newline");
}
if (eofOnUnclosedQuote && quoteStart >= 0) {
if (eofOnUnclosedQuote && quoteStart >= 0 && context != ParseContext.COMPLETE) {
throw new EOFError(-1, -1, "Missing closing quote", line.charAt(quoteStart) == '\''
? "quote" : "dquote");
}
Expand Down

0 comments on commit 6cc608c

Please sign in to comment.