ruby-changes:59025
From: aycabta <ko1@a...>
Date: Sun, 1 Dec 2019 23:56:40 +0900 (JST)
Subject: [ruby-changes:59025] f1cfc7da18 (master): Reline::HISTORY can take Range object
https://git.ruby-lang.org/ruby.git/commit/?id=f1cfc7da18 From f1cfc7da180a8cf26f758fbe553e6653e4a4dc53 Mon Sep 17 00:00:00 2001 From: aycabta <aycabta@g...> Date: Sun, 1 Dec 2019 22:11:59 +0900 Subject: Reline::HISTORY can take Range object diff --git a/lib/reline/history.rb b/lib/reline/history.rb index 155b543..238fcf2 100644 --- a/lib/reline/history.rb +++ b/lib/reline/history.rb @@ -13,7 +13,7 @@ class Reline::History < Array https://github.com/ruby/ruby/blob/trunk/lib/reline/history.rb#L13 end def [](index) - index = check_index(index) + index = check_index(index) unless index.is_a?(Range) super(index) end -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/