diff options
author | Koichi Sasada <ko1@atdot.net> | 2020-03-03 15:27:23 +0900 |
---|---|---|
committer | aycabta <aycabta@gmail.com> | 2020-03-03 15:27:23 +0900 |
commit | aa9a38c0ed114edded28a2a26e8dd507f7e1547f (patch) | |
tree | 71c9c5ff14585eb59c0ef722ff57060387fe75e9 /lib | |
parent | 91440ff13fbf3b14dc6ac6c1e0a33bc5a1e3237c (diff) | |
download | ruby-aa9a38c0ed114edded28a2a26e8dd507f7e1547f.tar.gz |
Ignore incompatible convert of symbols
Diffstat (limited to 'lib')
-rw-r--r-- | lib/irb/completion.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/irb/completion.rb b/lib/irb/completion.rb index 10533c5433..7277bf5504 100644 --- a/lib/irb/completion.rb +++ b/lib/irb/completion.rb @@ -101,6 +101,8 @@ module IRB sym = $1 candidates = Symbol.all_symbols.collect do |s| ":" + s.id2name.encode(Encoding.default_external) + rescue Encoding::UndefinedConversionError + # ignore end candidates.grep(/^#{Regexp.quote(sym)}/) else |