Permalink
Browse files

The tooltip message appears only when there is a mistake.

  • Loading branch information...
alexandre-butynski committed Aug 3, 2011
1 parent 9be85aa commit 1ce569f8ba72a1801a22ebf6ecc1faf93f14e490
Showing with 5 additions and 2 deletions.
  1. +5 −2 Commands/Validate and Save.tmCommand
@@ -15,8 +15,11 @@ if compiler_ruby.length == 0
end
result = `#{compiler_ruby} -wc "$TM_FILEPATH" 2>&1`
-print result
-TextMate.go_to :line => $1 if result =~ /:(\d+):/
+if result =~ /:(\d+):/
+ print result
+ TextMate.go_to :line => $1
+end
+
</string>
<key>input</key>
<string>document</string>

0 comments on commit 1ce569f

Please sign in to comment.