diff --git a/Commands/Completion: Ruby (rcodetools).tmCommand b/Commands/Completion: Ruby (rcodetools).tmCommand index 1c5b5d1..5cbf35c 100644 --- a/Commands/Completion: Ruby (rcodetools).tmCommand +++ b/Commands/Completion: Ruby (rcodetools).tmCommand @@ -42,7 +42,7 @@ command = <<END_COMMAND.tr("\n", " ").strip --column=#{ENV['TM_LINE_INDEX']} 2> /dev/null END_COMMAND -completions = `#{command}`.to_a.map { |l| l.strip }.select { |l| l =~ /\S/ } +completions = `#{command}`.split("\n").map { |l| l.strip }.select { |l| l =~ /\S/ } if not $?.success? TextMate.exit_show_tool_tip "Parse error."