Skip to content

Commit d563063

Browse files
committed
Rename search_history with incremental_search_history
1 parent d07601d commit d563063

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Diff for: lib/reline/line_editor.rb

+3-3
Original file line numberDiff line numberDiff line change
@@ -1330,7 +1330,7 @@ def finish
13301330
end
13311331
end
13321332

1333-
private def search_history(key)
1333+
private def incremental_search_history(key)
13341334
unless @history_pointer
13351335
if @is_multiline
13361336
@line_backup_in_history = whole_buffer
@@ -1412,12 +1412,12 @@ def finish
14121412
end
14131413

14141414
private def ed_search_prev_history(key)
1415-
search_history(key)
1415+
incremental_search_history(key)
14161416
end
14171417
alias_method :reverse_search_history, :ed_search_prev_history
14181418

14191419
private def ed_search_next_history(key)
1420-
search_history(key)
1420+
incremental_search_history(key)
14211421
end
14221422
alias_method :forward_search_history, :ed_search_next_history
14231423

0 commit comments

Comments
 (0)