summaryrefslogtreecommitdiff
path: root/test/reline/yamatanooroti/multiline_repl
diff options
context:
space:
mode:
authoraycabta <aycabta@gmail.com>2021-10-03 18:25:26 +0900
committergit <svn-admin@ruby-lang.org>2021-10-03 21:51:02 +0900
commit64e96d6b4100cd7ef53ed1a7d14c1298ccb0eb23 (patch)
tree2f0d98fdab0671375fa980f118b4299481d8a230 /test/reline/yamatanooroti/multiline_repl
parent208b7b81990edea6e220a4e2e4e0995c4ec0aad1 (diff)
[ruby/reline] Re-calc the scroll pos when the content in dialog is shortened
https://github.com/ruby/reline/commit/12ea63e6e0
Diffstat (limited to 'test/reline/yamatanooroti/multiline_repl')
-rwxr-xr-xtest/reline/yamatanooroti/multiline_repl7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/reline/yamatanooroti/multiline_repl b/test/reline/yamatanooroti/multiline_repl
index c9036f71b4..b80d1b3ab2 100755
--- a/test/reline/yamatanooroti/multiline_repl
+++ b/test/reline/yamatanooroti/multiline_repl
@@ -115,6 +115,13 @@ opt.on('--autocomplete-long') {
}.select{ |c| c.start_with?(target) }
}
}
+opt.on('--autocomplete-super-long') {
+ Reline.autocompletion = true
+ Reline.completion_proc = lambda { |target, preposing = nil, postposing = nil|
+ c = 'A'
+ 2000.times.map{ s = "Str_#{c}"; c.succ!; s }.select{ |c| c.start_with?(target) }
+ }
+}
opt.parse!(ARGV)
begin