[ruby/irb] Correct preferred_dialog_height's caller
(https://github.com/ruby/irb/pull/638) The caller should be the dialog itself, not Reline. https://github.com/ruby/irb/commit/418c2b945e
This commit is contained in:
parent
a02f5eb56a
commit
81beb29988
@ -397,7 +397,7 @@ module IRB
|
||||
mod_key = RUBY_PLATFORM.match?(/darwin/) ? "Option" : "Alt"
|
||||
message = "Press #{mod_key}+d to read the full document"
|
||||
contents = [message] + doc.accept(formatter).split("\n")
|
||||
contents = contents.take(Reline.preferred_dialog_height)
|
||||
contents = contents.take(preferred_dialog_height)
|
||||
|
||||
y = cursor_pos_to_render.y
|
||||
Reline::DialogRenderInfo.new(pos: Reline::CursorPos.new(x, y), contents: contents, width: width, bg_color: '49')
|
||||
|
Loading…
x
Reference in New Issue
Block a user