Skip to content

Commit

Permalink
Make sure searchIndex is initialized when we enter CTRL-R search mode
Browse files Browse the repository at this point in the history
  • Loading branch information
hns committed Apr 30, 2010
1 parent d602e9d commit 638b521
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/main/java/jline/ConsoleReader.java
Expand Up @@ -683,6 +683,7 @@ public String readLine(final String prompt, final Character mask)
printSearchStatus(searchTerm.toString(),
searchIndex > -1 ? history.getHistory(searchIndex) : "");
} else {
searchIndex = -1;
printSearchStatus("", "");
}
break;
Expand Down

0 comments on commit 638b521

Please sign in to comment.