[ruby/irb] Remove useless Reline::Key.new and update wrong comment

for alt+d
(https://github.com/ruby/irb/pull/963)

https://github.com/ruby/irb/commit/a572180b3a
This commit is contained in:
tomoya ishida 2024-06-04 21:09:07 +09:00 committed by git
parent 892849ac98
commit a8c1ef6a60

View File

@ -328,10 +328,11 @@ module IRB
->() {
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?