From 27142544725331d465aed364eacb67d2c4b1eeb7 Mon Sep 17 00:00:00 2001 From: guncha Date: Thu, 8 Sep 2011 01:12:15 +0900 Subject: [PATCH] Fix for source filenames with spaces bug. --- Commands/Complete.tmCommand | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Commands/Complete.tmCommand b/Commands/Complete.tmCommand index a6a453c..b5728c0 100644 --- a/Commands/Complete.tmCommand +++ b/Commands/Complete.tmCommand @@ -19,7 +19,7 @@ document = STDIN.readlines # byte offset of cursor position from the beginning of file cursor = document[ 0, ENV['TM_LINE_NUMBER'].to_i - 1].join().length + ENV['TM_LINE_INDEX'].to_i -output = IO.popen("gocode -f=csv autocomplete #{ENV['TM_FILEPATH']} #{cursor}", "w+") do |pipe| +output = IO.popen("gocode -f=csv autocomplete #{cursor}", "w+") do |pipe| pipe.puts document.join() pipe.close_write pipe.read