diff options
author | tomoya ishida <[email protected]> | 2023-03-03 22:41:17 +0900 |
---|---|---|
committer | git <[email protected]> | 2023-03-03 13:41:21 +0000 |
commit | b49053a6be3cc449678609f62048b7aed3a1f839 (patch) | |
tree | 994b84b551dbe65e5b0308bc64819c5f0c6ccd8c /lib/irb/completion.rb | |
parent | a2b776a9b7f5fc039025a8b92bfbdf3ab0968ce1 (diff) |
[ruby/irb] Avoid slow symbol completion when completion target is an
empty symbol
(https://github.com/ruby/irb/pull/534)
https://github.com/ruby/irb/commit/35697f3ef3
Diffstat (limited to 'lib/irb/completion.rb')
-rw-r--r-- | lib/irb/completion.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/irb/completion.rb b/lib/irb/completion.rb index 97f97dfafe..b3b2ecf924 100644 --- a/lib/irb/completion.rb +++ b/lib/irb/completion.rb @@ -215,7 +215,7 @@ module IRB select_message(receiver, message, proc_candidates | hash_candidates) end - when /^(:[^:.]*)$/ + when /^(:[^:.]+)$/ # Symbol if doc_namespace nil |