Skip to content

Commit

Permalink
Merge pull request #1 from tomaszj/master
Browse files Browse the repository at this point in the history
Changed Complete.tmCommand to accept TM_GOCODE path with spaces.
  • Loading branch information
syscrusher committed Jun 24, 2014
2 parents 0bdec37 + 8520c4b commit c338ac8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Commands/Complete.tmCommand
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ end
# 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 = `$TM_GOCODE -f=csv -in=#{e_sh ENV['TM_FILEPATH']} autocomplete #{cursor}`
output = `"$TM_GOCODE" -f=csv -in=#{e_sh ENV['TM_FILEPATH']} autocomplete #{cursor}`
# quit if no completions found
TextMate.exit_show_tool_tip("No completions found.") if output.length == 0
Expand Down

0 comments on commit c338ac8

Please sign in to comment.