Skip to content

Commit

Permalink
Encode completed strings corecctly
Browse files Browse the repository at this point in the history
  • Loading branch information
aycabta committed May 28, 2019
1 parent 3e54ff6 commit d390af3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/irb/completion.rb
Expand Up @@ -39,7 +39,7 @@ def defined do
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)
Expand Down

0 comments on commit d390af3

Please sign in to comment.