summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/reline/line_editor.rb1
1 files changed, 0 insertions, 1 deletions
diff --git a/lib/reline/line_editor.rb b/lib/reline/line_editor.rb
index 6e5ef11bc0..b2a963c6ab 100644
--- a/lib/reline/line_editor.rb
+++ b/lib/reline/line_editor.rb
@@ -1720,7 +1720,6 @@ class Reline::LineEditor
return if @history_pointer.nil?
history_range = @history_pointer + 1...Reline::HISTORY.size
- history = Reline::HISTORY.slice((@history_pointer + 1)..-1)
h_pointer, line_index = search_history(substr, history_range)
return if h_pointer.nil? and not substr.empty?