Skip to content

Commit

Permalink
Bring back previous constructor with a deprecated notice, #245
Browse files Browse the repository at this point in the history
  • Loading branch information
gnodet committed Apr 9, 2018
1 parent d7b1348 commit ed06ec3
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions reader/src/main/java/org/jline/reader/impl/DefaultParser.java
Original file line number Diff line number Diff line change
Expand Up @@ -290,6 +290,25 @@ public class ArgumentList implements ParsedLine, CompletingParsedLine

private final int rawWordLength;

@Deprecated
public ArgumentList(final String line, final List<String> words,
final int wordIndex, final int wordCursor,
final int cursor) {
this(line, words, wordIndex, wordCursor, cursor,
null, wordCursor, words.get(wordIndex).length());
}

/**
*
* @param line the command line being edited
* @param words
* @param wordIndex
* @param wordCursor
* @param cursor
* @param openingQuote the opening quote (usually '\"' or '\'') or null
* @param rawWordCursor the cursor position inside the raw word (i.e. including quotes and escape characters)
* @param rawWordLength the raw word length, including quotes and escape characters
*/
public ArgumentList(final String line, final List<String> words,
final int wordIndex, final int wordCursor,
final int cursor, final String openingQuote,
Expand Down

0 comments on commit ed06ec3

Please sign in to comment.