Skip to content

Commit

Permalink
Rename search_history with incremental_search_history
Browse files Browse the repository at this point in the history
  • Loading branch information
aycabta committed Apr 14, 2020
1 parent d07601d commit d563063
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/reline/line_editor.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1330,7 +1330,7 @@ def finish
end
end

private def search_history(key)
private def incremental_search_history(key)
unless @history_pointer
if @is_multiline
@line_backup_in_history = whole_buffer
Expand Down Expand Up @@ -1412,12 +1412,12 @@ def finish
end

private def ed_search_prev_history(key)
search_history(key)
incremental_search_history(key)
end
alias_method :reverse_search_history, :ed_search_prev_history

private def ed_search_next_history(key)
search_history(key)
incremental_search_history(key)
end
alias_method :forward_search_history, :ed_search_next_history

Expand Down

0 comments on commit d563063

Please sign in to comment.