Skip to content

Commit

Permalink
Merge pull request #283 from aycabta/use-multiple-trap_key
Browse files Browse the repository at this point in the history
Use multiple trap_key
  • Loading branch information
aycabta authored Sep 5, 2021
2 parents 7199b95 + 416abe2 commit b035e1d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/irb/input-method.rb
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ def auto_indent(&block)

SHOW_DOC_DIALOG = ->() {
dialog.trap_key = nil
alt_d = Reline::Key.new(nil, 0xE4, true)
alt_d = [[Reline::Key.new(nil, 0xE4, true)], [195, 164]]
begin
require 'rdoc'
rescue LoadError
Expand All @@ -332,7 +332,7 @@ def auto_indent(&block)

driver = RDoc::RI::Driver.new

if key.match?(alt_d)
if key.match?(dialog.name)
begin
driver.display_names([name])
rescue RDoc::RI::Driver::NotFoundError
Expand Down

0 comments on commit b035e1d

Please sign in to comment.