summaryrefslogtreecommitdiff
path: root/lib/reline.rb
diff options
context:
space:
mode:
authoraycabta <aycabta@gmail.com>2021-09-04 07:29:23 +0900
committeraycabta <aycabta@gmail.com>2021-09-04 21:40:12 +0900
commitec36ceb072be5b08dbdd747443192901a1c771e9 (patch)
tree86ec57709ebc82de833df50a98a4f5289f71b1eb /lib/reline.rb
parentff372ed74b4cedd8252e589d2b89c59b0bd8d763 (diff)
[ruby/reline] Implement scrollbar
https://github.com/ruby/reline/commit/4c7fc42151
Diffstat (limited to 'lib/reline.rb')
-rw-r--r--lib/reline.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/reline.rb b/lib/reline.rb
index d440b2d7ba..735a5afad8 100644
--- a/lib/reline.rb
+++ b/lib/reline.rb
@@ -24,7 +24,7 @@ module Reline
end
end
CursorPos = Struct.new(:x, :y)
- DialogRenderInfo = Struct.new(:pos, :contents, :pointer, :bg_color, :width, :height, keyword_init: true)
+ DialogRenderInfo = Struct.new(:pos, :contents, :pointer, :bg_color, :width, :height, :scrollbar, keyword_init: true)
class Core
ATTR_READER_NAMES = %i(
@@ -228,7 +228,7 @@ module Reline
context.clear
context.push(cursor_pos_to_render, result, pointer, dialog)
end
- DialogRenderInfo.new(pos: cursor_pos_to_render, contents: result, pointer: pointer, height: 15)
+ DialogRenderInfo.new(pos: cursor_pos_to_render, contents: result, pointer: pointer, scrollbar: true, height: 15)
}
Reline::DEFAULT_DIALOG_CONTEXT = Array.new