Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/main/java/jline/ConsoleReader.java
Original file line number Diff line number Diff line change
Expand Up @@ -504,8 +504,6 @@ public String readLine(final String prompt, final Character mask)
final int SEARCH = 2;
int state = NORMAL;

boolean success = true;

while (true) {
// Read next key and look up the command binding.
int[] next = readBinding();
Expand All @@ -520,6 +518,8 @@ public String readLine(final String prompt, final Character mask)
if (c == -1) {
return null;
}

boolean success = true;

// Search mode.
//
Expand Down