Skip to content

Commit

Permalink
Nano search does not work, fixes #336
Browse files Browse the repository at this point in the history
  • Loading branch information
gnodet committed Nov 26, 2018
1 parent a24636d commit dfedc72
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion builtins/src/main/java/org/jline/builtins/Nano.java
Original file line number Diff line number Diff line change
Expand Up @@ -1473,7 +1473,6 @@ private LinkedHashMap<String, String> standardShortcuts() {
s.put("^G", "Get Help");
s.put("^O", "WriteOut");
s.put("^R", "Read File");
s.put("^O", "WriteOut");
s.put("^Y", "Prev Page");
s.put("^K", "Cut Text");
s.put("^C", "Cur Pos");
Expand Down Expand Up @@ -1552,6 +1551,7 @@ void help(String help) {
void search() throws IOException {
KeyMap<Operation> searchKeyMap = new KeyMap<>();
searchKeyMap.setUnicode(Operation.INSERT);
searchKeyMap.setNomatch(Operation.INSERT);
for (char i = 'A'; i <= 'Z'; i++) {
searchKeyMap.bind(Operation.DO_LOWER_CASE, alt(i));
}
Expand Down

0 comments on commit dfedc72

Please sign in to comment.