diff options
Diffstat (limited to 'test/reline/yamatanooroti/multiline_repl')
-rwxr-xr-x | test/reline/yamatanooroti/multiline_repl | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/test/reline/yamatanooroti/multiline_repl b/test/reline/yamatanooroti/multiline_repl index 49c7a56074..28630210b6 100755 --- a/test/reline/yamatanooroti/multiline_repl +++ b/test/reline/yamatanooroti/multiline_repl @@ -70,7 +70,11 @@ opt.on('--dialog VAL') { |v| dialog.trap_key = [?j.ord] height = 4 end - Reline::DialogRenderInfo.new(pos: cursor_pos, contents: contents, height: height, pointer: context.pointer) + scrollbar = false + if v.include?('scrollbar') + scrollbar = true + end + Reline::DialogRenderInfo.new(pos: cursor_pos, contents: contents, height: height, pointer: context.pointer, scrollbar: scrollbar) }, Struct.new(:pointer).new) } opt.on('--complete') { |