Reline::HISTORY can take Range object

This commit is contained in:
aycabta 2019-12-01 22:11:59 +09:00
parent 617a3735ae
commit f1cfc7da18

View File

@ -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