Skip to content

Commit

Permalink
Use Reline::Key for trap_key in dialog callback
Browse files Browse the repository at this point in the history
  • Loading branch information
aycabta committed Sep 2, 2021
1 parent 856f001 commit b05ce3c
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 = 0xE4
alt_d = Reline::Key.new(nil, 0xE4, true)
begin
require 'rdoc'
rescue LoadError
Expand All @@ -332,7 +332,7 @@ def auto_indent(&block)

driver = RDoc::RI::Driver.new

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

0 comments on commit b05ce3c

Please sign in to comment.