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