From 259601ab578885418b36138e457c2a93dd281896 Mon Sep 17 00:00:00 2001 From: aycabta Date: Wed, 16 Oct 2019 02:55:45 +0900 Subject: Support backspace in incremental search --- lib/reline/line_editor.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3