mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
parent
f793f68264
commit
eb92d7c732
1 changed files with 2 additions and 1 deletions
|
@ -370,7 +370,8 @@ module IRB
|
||||||
formatter = RDoc::Markup::ToAnsi.new
|
formatter = RDoc::Markup::ToAnsi.new
|
||||||
formatter.width = width
|
formatter.width = width
|
||||||
dialog.trap_key = alt_d
|
dialog.trap_key = alt_d
|
||||||
contents = doc.accept(formatter).split("\n")
|
message = 'Press Alt+d to read the full document'
|
||||||
|
contents = [message] + doc.accept(formatter).split("\n")
|
||||||
|
|
||||||
x = cursor_pos_to_render.x + autocomplete_dialog.width
|
x = cursor_pos_to_render.x + autocomplete_dialog.width
|
||||||
x = cursor_pos_to_render.x - width if x + width >= screen_width
|
x = cursor_pos_to_render.x - width if x + width >= screen_width
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue