1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

[ruby/reline] Rename search_history with incremental_search_history

https://github.com/ruby/reline/commit/d563063ea0
This commit is contained in:
aycabta 2020-04-15 02:10:27 +09:00
parent 08529a6115
commit afe997857e

View file

@ -1330,7 +1330,7 @@ class Reline::LineEditor
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
@ -1412,12 +1412,12 @@ class Reline::LineEditor
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