From dfedc72d2ed06915feac7f50959be58aae40f53a Mon Sep 17 00:00:00 2001 From: Guillaume Nodet Date: Mon, 26 Nov 2018 09:01:20 +0100 Subject: [PATCH] Nano search does not work, fixes #336 --- builtins/src/main/java/org/jline/builtins/Nano.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/builtins/src/main/java/org/jline/builtins/Nano.java b/builtins/src/main/java/org/jline/builtins/Nano.java index 82351bc43..bf2061e0e 100644 --- a/builtins/src/main/java/org/jline/builtins/Nano.java +++ b/builtins/src/main/java/org/jline/builtins/Nano.java @@ -1473,7 +1473,6 @@ private LinkedHashMap 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"); @@ -1552,6 +1551,7 @@ void help(String help) { void search() throws IOException { KeyMap 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)); }