We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fd49135 commit df6907aCopy full SHA for df6907a
1 file changed
lib/irb/input-method.rb
@@ -401,6 +401,7 @@ def auto_indent(&block)
401
mod_key = RUBY_PLATFORM.match?(/darwin/) ? "Option" : "Alt"
402
message = "Press #{mod_key}+d to read the full document"
403
contents = [message] + doc.accept(formatter).split("\n")
404
+ contents = contents.take(preferred_dialog_height) if respond_to?(:preferred_dialog_height)
405
406
y = cursor_pos_to_render.y
407
DialogRenderInfo.new(pos: Reline::CursorPos.new(x, y), contents: contents, width: width, bg_color: '49')
0 commit comments