summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authoraycabta <aycabta@gmail.com>2021-09-10 10:56:56 +0900
committergit <svn-admin@ruby-lang.org>2021-09-10 10:57:16 +0900
commit4c896cda37fabb562f07ab1dccc6ab03a3b2c703 (patch)
tree1014d27db00b44b5b8b3a3a12ad12b5858bdd16c /test
parente5c40c3dc9d20481700ba8c859b08678b7b21971 (diff)
[ruby/reline] Fix scroll range of a script for tests
https://github.com/ruby/reline/commit/6ceebe52bc
Diffstat (limited to 'test')
-rwxr-xr-xtest/reline/yamatanooroti/multiline_repl2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/reline/yamatanooroti/multiline_repl b/test/reline/yamatanooroti/multiline_repl
index 28630210b6..e8a4aa5a90 100755
--- a/test/reline/yamatanooroti/multiline_repl
+++ b/test/reline/yamatanooroti/multiline_repl
@@ -61,7 +61,7 @@ opt.on('--dialog VAL') { |v|
if key and key.match?(dialog.name)
if context.pointer.nil?
context.pointer = 0
- elsif context.first > dialog.contents.size
+ elsif context.pointer >= (contents.size - 1)
context.pointer = 0
else
context.pointer += 1