summaryrefslogtreecommitdiff
path: root/lib/reline/history.rb
diff options
context:
space:
mode:
authoraycabta <aycabta@gmail.com>2019-12-01 22:11:59 +0900
committeraycabta <aycabta@gmail.com>2019-12-01 23:54:57 +0900
commitf1cfc7da180a8cf26f758fbe553e6653e4a4dc53 (patch)
tree1ad81edd529831484c5cba6960f629bb7b195dc6 /lib/reline/history.rb
parent617a3735aedc12fe82b6806d6d3a37c3f977fef1 (diff)
Reline::HISTORY can take Range object
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