summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authoraycabta <aycabta@gmail.com>2019-10-16 02:55:45 +0900
committeraycabta <aycabta@gmail.com>2019-10-16 02:55:45 +0900
commit259601ab578885418b36138e457c2a93dd281896 (patch)
tree7b7bdc514128bd49ea2d54679cf2f35f65b6160a /lib
parenta5245c165808b9ac0a492e218b0603e93262b449 (diff)
Support backspace in incremental search
Diffstat (limited to 'lib')
-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