[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:
parent
892849ac98
commit
a8c1ef6a60
@ -328,10 +328,11 @@ module IRB
|
|||||||
->() {
|
->() {
|
||||||
dialog.trap_key = nil
|
dialog.trap_key = nil
|
||||||
alt_d = [
|
alt_d = [
|
||||||
[Reline::Key.new(nil, 0xE4, true)], # Normal Alt+d.
|
|
||||||
[27, 100], # Normal Alt+d when convert-meta isn't used.
|
[27, 100], # Normal Alt+d when convert-meta isn't used.
|
||||||
[195, 164], # The "ä" that appears when Alt+d is pressed on xterm.
|
# When option/alt is not configured as a meta key in terminal emulator,
|
||||||
[226, 136, 130] # The "∂" that appears when Alt+d in pressed on iTerm2.
|
# 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?
|
if just_cursor_moving and completion_journey_data.nil?
|
||||||
|
Loading…
x
Reference in New Issue
Block a user