diff options
author | aycabta <aycabta@gmail.com> | 2019-12-01 22:11:59 +0900 |
---|---|---|
committer | aycabta <aycabta@gmail.com> | 2019-12-01 23:54:57 +0900 |
commit | f1cfc7da180a8cf26f758fbe553e6653e4a4dc53 (patch) | |
tree | 1ad81edd529831484c5cba6960f629bb7b195dc6 | |
parent | 617a3735aedc12fe82b6806d6d3a37c3f977fef1 (diff) | |
download | ruby-f1cfc7da180a8cf26f758fbe553e6653e4a4dc53.tar.gz |
Reline::HISTORY can take Range object
-rw-r--r-- | lib/reline/history.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/reline/history.rb b/lib/reline/history.rb index 155b543c19..238fcf2a76 100644 --- a/lib/reline/history.rb +++ b/lib/reline/history.rb @@ -13,7 +13,7 @@ class Reline::History < Array end def [](index) - index = check_index(index) + index = check_index(index) unless index.is_a?(Range) super(index) end |