From f1cfc7da180a8cf26f758fbe553e6653e4a4dc53 Mon Sep 17 00:00:00 2001 From: aycabta Date: Sun, 1 Dec 2019 22:11:59 +0900 Subject: [PATCH] Reline::HISTORY can take Range object --- lib/reline/history.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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