diff options
author | aycabta <aycabta@gmail.com> | 2021-09-10 11:23:42 +0900 |
---|---|---|
committer | git <svn-admin@ruby-lang.org> | 2021-09-10 11:38:54 +0900 |
commit | 5dc753df47739ce03d4ecaf1f37817858861e5cd (patch) | |
tree | c59b9b30f8b08c82fb167a26b92fc7f9ff180f83 /lib/reline.rb | |
parent | 01a364a36a14bc4cc0dfbfba02557bceec10f6b8 (diff) |
[ruby/reline] Move #pointer from DialogRenderInfo to Dialog
https://github.com/ruby/reline/commit/92dbac0bff
Diffstat (limited to 'lib/reline.rb')
-rw-r--r-- | lib/reline.rb | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/reline.rb b/lib/reline.rb index b331421012..9746b35ac5 100644 --- a/lib/reline.rb +++ b/lib/reline.rb @@ -37,7 +37,7 @@ module Reline alias_method :==, :match? end CursorPos = Struct.new(:x, :y) - DialogRenderInfo = Struct.new(:pos, :contents, :pointer, :bg_color, :width, :height, :scrollbar, keyword_init: true) + DialogRenderInfo = Struct.new(:pos, :contents, :bg_color, :width, :height, :scrollbar, keyword_init: true) class Core ATTR_READER_NAMES = %i( @@ -241,7 +241,8 @@ 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, scrollbar: true, height: 15) + dialog.pointer = pointer + DialogRenderInfo.new(pos: cursor_pos_to_render, contents: result, scrollbar: true, height: 15) } Reline::DEFAULT_DIALOG_CONTEXT = Array.new |