mirror of
https://github.com/ruby/ruby.git
synced 2025-09-22 03:53:58 +02:00
parent
e5c40c3dc9
commit
4c896cda37
1 changed files with 1 additions and 1 deletions
|
@ -61,7 +61,7 @@ opt.on('--dialog VAL') { |v|
|
||||||
if key and key.match?(dialog.name)
|
if key and key.match?(dialog.name)
|
||||||
if context.pointer.nil?
|
if context.pointer.nil?
|
||||||
context.pointer = 0
|
context.pointer = 0
|
||||||
elsif context.first > dialog.contents.size
|
elsif context.pointer >= (contents.size - 1)
|
||||||
context.pointer = 0
|
context.pointer = 0
|
||||||
else
|
else
|
||||||
context.pointer += 1
|
context.pointer += 1
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue