Skip to content

Commit

Permalink
Split multiple return values (completion) with split rather than to_a
Browse files Browse the repository at this point in the history
  • Loading branch information
cuevee committed Sep 12, 2011
1 parent 5eff72f commit 84d7cae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Commands/Completion: Ruby (rcodetools).tmCommand
Original file line number Diff line number Diff line change
Expand Up @@ -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."
Expand Down

0 comments on commit 84d7cae

Please sign in to comment.