Skip to content

Commit

Permalink
Fix #364: Command completion fails when value starts with escape
Browse files Browse the repository at this point in the history
character
  • Loading branch information
mattirn authored and gnodet committed Mar 15, 2019
1 parent 886867c commit e1b0fde
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ public ParsedLine parse(final String line, final int cursor, ParseContext contex
rawWordLength = rawWordCursor;
}

if (eofOnEscapedNewLine && isEscapeChar(line, line.length() - 1)) {
if (eofOnEscapedNewLine && isEscapeChar(line, line.length() - 1) && context != ParseContext.COMPLETE) {
throw new EOFError(-1, -1, "Escaped new line", "newline");
}
if (eofOnUnclosedQuote && quoteStart >= 0 && context != ParseContext.COMPLETE) {
Expand Down

0 comments on commit e1b0fde

Please # to comment.