Skip to content

Commit

Permalink
[ruby/reline] Remove unused variable
Browse files Browse the repository at this point in the history
  • Loading branch information
kachick authored and hsbt committed Apr 18, 2024
1 parent 0f1ef19 commit a3b7a7b
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion lib/reline/line_editor.rb
Expand Up @@ -1720,7 +1720,6 @@ def finish
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?

Expand Down

0 comments on commit a3b7a7b

Please sign in to comment.