summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/reline/line_editor.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/reline/line_editor.rb b/lib/reline/line_editor.rb
index 4bf280fcec..9223e55e5f 100644
--- a/lib/reline/line_editor.rb
+++ b/lib/reline/line_editor.rb
@@ -1223,7 +1223,7 @@ class Reline::LineEditor
@cursor = @byte_pointer = 0
else
chr = key.is_a?(String) ? key : key.chr(Encoding::ASCII_8BIT)
- if chr.match?(/[[:print:]]/)
+ if chr.match?(/[[:print:]]/) or key == "\C-h".ord or key == 127
searcher.resume(key)
else
if @history_pointer