ruby-changes:60823
From: aycabta <ko1@a...>
Date: Sat, 18 Apr 2020 23:13:29 +0900 (JST)
Subject: [ruby-changes:60823] afe997857e (master): [ruby/reline] Rename search_history with incremental_search_history
https://git.ruby-lang.org/ruby.git/commit/?id=afe997857e From afe997857ec69771078d04a7d4f9da784f478ad5 Mon Sep 17 00:00:00 2001 From: aycabta <aycabta@g...> Date: Wed, 15 Apr 2020 02:10:27 +0900 Subject: [ruby/reline] Rename search_history with incremental_search_history https://github.com/ruby/reline/commit/d563063ea0 diff --git a/lib/reline/line_editor.rb b/lib/reline/line_editor.rb index 095a7b5..0a72de1 100644 --- a/lib/reline/line_editor.rb +++ b/lib/reline/line_editor.rb @@ -1330,7 +1330,7 @@ class Reline::LineEditor https://github.com/ruby/ruby/blob/trunk/lib/reline/line_editor.rb#L1330 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 https://github.com/ruby/ruby/blob/trunk/lib/reline/line_editor.rb#L1412 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 -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/