mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Reline::HISTORY can take Range object
This commit is contained in:
parent
617a3735ae
commit
f1cfc7da18
1 changed files with 1 additions and 1 deletions
|
@ -13,7 +13,7 @@ class Reline::History < Array
|
||||||
end
|
end
|
||||||
|
|
||||||
def [](index)
|
def [](index)
|
||||||
index = check_index(index)
|
index = check_index(index) unless index.is_a?(Range)
|
||||||
super(index)
|
super(index)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue