Permalink
Browse files

Fixed selection of source from metadata.

  • Loading branch information...
1 parent a268d96 commit ee6ef16da85f06a10e452f1a8c62a33d06867dc1 @jutaro jutaro committed Mar 11, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/IDE/Pane/SourceBuffer.hs
@@ -271,7 +271,7 @@ goToSourceDefinition fp dscMbLocation = do
iterTemp <- getIterAtLine ebuf (max 0 (min (lines-1)
((locationSLine location) -1)))
chars <- getCharsInLine iterTemp
- iter <- atLineOffset iterTemp (max 0 (min (chars-1) (locationSCol location)))
+ iter <- atLineOffset iterTemp (max 0 (min (chars-1) (locationSCol location -1)))
iter2Temp <- getIterAtLine ebuf (max 0 (min (lines-1)
((locationELine location) -1)))
chars2 <- getCharsInLine iter2Temp

0 comments on commit ee6ef16

Please sign in to comment.