summaryrefslogtreecommitdiff
path: root/lib/reline/history.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/reline/history.rb')
-rw-r--r--lib/reline/history.rb2
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