[ruby/reline] Remove unused variable

(https://github.com/ruby/reline/pull/684)

https://github.com/ruby/reline/commit/ce30c23730
This commit is contained in:
Kenichi Kamiya 2024-04-17 13:10:48 +09:00 committed by Hiroshi SHIBATA
parent 0f1ef19fcd
commit a3b7a7bc21
No known key found for this signature in database
GPG Key ID: F9CF13417264FAC2

View File

@ -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?