Permalink
Browse files

Fixed code completion with a single result: no longer puts single com…

…pletions at end of file.
  • Loading branch information...
Jim Dovey
Jim Dovey committed Oct 22, 2012
1 parent 090abcd commit 439af20eebed90501ffc0aa03463f75efd1dbfe8
Showing with 7 additions and 3 deletions.
  1. +3 −2 Commands/Complete.tmCommand
  2. +3 −0 History.rdoc
  3. +1 −1 README.rdoc
@@ -10,6 +10,7 @@ require ENV['TM_SUPPORT_PATH'] + '/lib/ui.rb'
require ENV['TM_SUPPORT_PATH'] + "/lib/escape.rb"
require ENV['TM_SUPPORT_PATH'] + "/lib/tm/require_cmd.rb"
require ENV['TM_SUPPORT_PATH'] + "/lib/tm/htmloutput.rb"
+require ENV['TM_SUPPORT_PATH'] + "/lib/web_preview"
TextMate.require_cmd("gocode")
@@ -105,14 +106,14 @@ options = { :extra_chars => "_", :case_insensitive => false }
if hash.length == 1
word = ENV['TM_CURRENT_WORD'] || ""
snippet = hash[0]["match"].gsub(/^#{Regexp.escape(word)}/, "") + hash[0]["insert"]
- TextMate.exit_insert_snippet( snippet )
+ `"$DIALOG" x-insert --snippet #{e_sh snippet}`
else
TextMate::UI.complete( hash , options )
end</string>
<key>fallbackInput</key>
<string>word</string>
<key>hideFromUser</key>
- <true/>
+ <string>true</string>
<key>input</key>
<string>document</string>
<key>keyEquivalent</key>
View
@@ -1,3 +1,6 @@
+=== 2.0.1 / 2012-10-22
+* Fixed code-completion with a single result: no longer puts single completions at end of file.
+
=== 2.0 / 2012-10-22
* Merged in a whole lot of work from other folks, primarily bringing in full support for Go 1.0 and TextMate 2:
View
@@ -1,6 +1,6 @@
== Go
(a TextMate 2 language bundle)
-Version 2.0
+Version 2.0.1
=== Installation

0 comments on commit 439af20

Please sign in to comment.