[前][次][番号順一覧][スレッド一覧]

ruby-changes:67693

From: aycabta <ko1@a...>
Date: Fri, 10 Sep 2021 10:57:38 +0900 (JST)
Subject: [ruby-changes:67693] 4c896cda37 (master): [ruby/reline] Fix scroll range of a script for tests

https://git.ruby-lang.org/ruby.git/commit/?id=4c896cda37

From 4c896cda37fabb562f07ab1dccc6ab03a3b2c703 Mon Sep 17 00:00:00 2001
From: aycabta <aycabta@g...>
Date: Fri, 10 Sep 2021 10:56:56 +0900
Subject: [ruby/reline] Fix scroll range of a script for tests

https://github.com/ruby/reline/commit/6ceebe52bc
---
 test/reline/yamatanooroti/multiline_repl | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/test/reline/yamatanooroti/multiline_repl b/test/reline/yamatanooroti/multiline_repl
index 2863021..e8a4aa5 100755
--- a/test/reline/yamatanooroti/multiline_repl
+++ b/test/reline/yamatanooroti/multiline_repl
@@ -61,7 +61,7 @@ opt.on('--dialog VAL') { |v| https://github.com/ruby/ruby/blob/trunk/test/reline/yamatanooroti/multiline_repl#L61
       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
-- 
cgit v1.1


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]