Skip to content

Commit

Permalink
Add message to show full doc
Browse files Browse the repository at this point in the history
  • Loading branch information
aycabta committed Sep 2, 2021
1 parent 368327b commit 6370a5d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/irb/input-method.rb
Original file line number Diff line number Diff line change
Expand Up @@ -370,7 +370,8 @@ def auto_indent(&block)
formatter = RDoc::Markup::ToAnsi.new
formatter.width = width
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 = autocomplete_dialog.column - width if x + width >= screen_width
Expand Down

0 comments on commit 6370a5d

Please sign in to comment.