irb
irb copied to clipboard
Completion does not work after [
Description
Completion does not seem to work immediately after [.
It works after (, {, etc.
Steps to Reproduce
Scenario:
Type [ and RUBY_VER, then type TAB.
Expected:
Type [ and RUBY_VER.
% irb
irb(main):001:1* [RUBY_VER
RUBY_VERSION
RUBY_VERSION appears in the dialog.
Type TAB to complete RUBY_VERSION.
irb(main):001:1* [RUBY_VERSION
RUBY_VERSION
Actual:
Type [ and RUBY_VER.
% irb
irb(main):001:1* [RUBY_VER
No dialog appears.
Type TAB.
irb(main):001:1* [RUBY_VER
RUBY_VERSION does not complete.
Result of irb_info
Please paste the result of irb_info command in IRB.
Ruby version: 3.1.3
IRB version: irb 1.6.3 (2023-03-06)
InputMethod: RelineInputMethod with Reline 0.3.2
RUBY_PLATFORM: amd64-freebsd13
LANG env: ja_JP.UTF-8
East Asian Ambiguous Width: 2
Terminal Emulator
PuTTYrv 0.78-ranvis (CJK)
Setting Files
No ~/.irbrc or ~/.inputrc.
Completion after [ does not work in both RelineInputMethod(default) and ReadlineInputMethod(irb --nomuliline).
Other symbols that make completion fail:
[RUBY_VER
+RUBY_VER
-RUBY_VER
puts(*RUBY_VER
1/RUBY_VER
s%RUBY_VER
!RUBY_VER
~RUBY_VER
p(1,RUBY_VER
1?RUBY_VER
1?2:RUBY_VER
Also note that the experimental type completor irb --type-completor can complete these.