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.
Option
1 parent 849087b commit e10fceeCopy full SHA for e10fcee
1 file changed
lib/irb/input-method.rb
@@ -398,7 +398,8 @@ def auto_indent(&block)
398
formatter = RDoc::Markup::ToAnsi.new
399
formatter.width = width
400
dialog.trap_key = alt_d
401
- message = 'Press Alt+d to read the full document'
+ 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
405
y = cursor_pos_to_render.y
0 commit comments