Skip to content

Commit

Permalink
Remove unused variable (#684)
Browse files Browse the repository at this point in the history
  • Loading branch information
kachick authored Apr 17, 2024
1 parent 90e43e0 commit ce30c23
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion lib/reline/line_editor.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1744,7 +1744,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 ce30c23

Please sign in to comment.