diff options
author | aycabta <aycabta@gmail.com> | 2021-09-10 10:56:56 +0900 |
---|---|---|
committer | git <svn-admin@ruby-lang.org> | 2021-09-10 10:57:16 +0900 |
commit | 4c896cda37fabb562f07ab1dccc6ab03a3b2c703 (patch) | |
tree | 1014d27db00b44b5b8b3a3a12ad12b5858bdd16c /test | |
parent | e5c40c3dc9d20481700ba8c859b08678b7b21971 (diff) |
[ruby/reline] Fix scroll range of a script for tests
https://github.com/ruby/reline/commit/6ceebe52bc
Diffstat (limited to 'test')
-rwxr-xr-x | test/reline/yamatanooroti/multiline_repl | 2 |
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 |