Permalink
Browse files

haskellmate: Tweak error hyperlinks to account for TextMate's 1-based…

… column count

git-svn-id: http://svn.textmate.org/trunk/Bundles/Haskell.tmbundle@10627 dfb7d73b-c2ec-0310-8fea-fb051d288c6d
  • Loading branch information...
kballard committed Sep 24, 2008
1 parent 40c4247 commit 502614febba099eac9850fc73039a568315371da
Showing with 1 addition and 1 deletion.
  1. +1 −1 Support/bin/haskellmate
View
@@ -15,7 +15,7 @@ until (STDIN.eof?)
fname, line, column = m[1..3] if m
if m && File.exist?(fname)
# puts line
- s.gsub!(/#{fname}:#{line}:#{column}/,"<a href='txmt://open?url=file://#{proper_escape fname}&line=#{line}&column=#{column}'>#{fname}:#{line}:#{column}</a>")
+ s.gsub!(/#{fname}:#{line}:#{column}/,"<a href='txmt://open?url=file://#{proper_escape fname}&line=#{line}&column=#{column.to_i+1}'>#{fname}:#{line}:#{column}</a>")
end
puts s
STDOUT.flush

0 comments on commit 502614f

Please sign in to comment.