diff options
author | aycabta <[email protected]> | 2019-05-29 06:54:49 +0900 |
---|---|---|
committer | aycabta <[email protected]> | 2019-05-29 06:54:57 +0900 |
commit | d390af3686d640dd2aa54af51ed5c2a8e581a46e (patch) | |
tree | 6a8be1bd3f50362d3eb39dbc535145be227e43d1 | |
parent | 3e54ff67e6dc1c5882fc05392add09bc59c1afae (diff) |
Encode completed strings corecctly
-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 a954b4e903..b9142bd598 100644 --- a/lib/irb/completion.rb +++ b/lib/irb/completion.rb @@ -39,7 +39,7 @@ module IRB BASIC_WORD_BREAK_CHARACTERS = " \t\n`><=;|&{(" CompletionProc = proc { |input| - retrieve_completion_data(input) + retrieve_completion_data(input).compact.map{ |i| i.encode(Encoding.default_external) } } def self.retrieve_completion_data(input, doc_namespace = false) |