From f517d0ede4d5616c8ba65bcc3a7d9559279bd2c7 Mon Sep 17 00:00:00 2001 From: tompng Date: Tue, 4 Jun 2024 01:10:56 +0900 Subject: [PATCH] Remove useless Reline::Key.new and update wrong comment for alt+d --- lib/irb/input-method.rb | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/lib/irb/input-method.rb b/lib/irb/input-method.rb index 684527edc..ced35a2c5 100644 --- a/lib/irb/input-method.rb +++ b/lib/irb/input-method.rb @@ -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?