Skip to content

Commit

Permalink
Remove useless Reline::Key.new and update wrong comment for alt+d
Browse files Browse the repository at this point in the history
  • Loading branch information
tompng committed Jun 3, 2024
1 parent 2f42b23 commit f517d0e
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions lib/irb/input-method.rb
Original file line number Diff line number Diff line change
Expand Up @@ -328,10 +328,11 @@ def show_doc_dialog_proc
->() {
dialog.trap_key = nil
alt_d = [
[Reline::Key.new(nil, 0xE4, true)], # Normal Alt+d.
[27, 100], # Normal Alt+d when convert-meta isn't used.
[195, 164], # The "ä" that appears when Alt+d is pressed on xterm.
[226, 136, 130] # The "∂" that appears when Alt+d in pressed on iTerm2.
# When option/alt is not configured as a meta key in terminal emulator,
# option/alt + d will send a unicode character depend on OS keyboard setting.
[195, 164], # "ä" in somewhere (FIXME: environment information is unknown).
[226, 136, 130] # "∂" Alt+d on Mac keyboard.
]

if just_cursor_moving and completion_journey_data.nil?
Expand Down

0 comments on commit f517d0e

Please sign in to comment.