From 84d7cae8841ededb6af420d81b1e309a0c5f8a7f Mon Sep 17 00:00:00 2001 From: Quintis Venter Date: Mon, 12 Sep 2011 13:46:12 -0400 Subject: [PATCH] Split multiple return values (completion) with split rather than to_a --- Commands/Completion: Ruby (rcodetools).tmCommand | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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."