Skip to content

Commit

Permalink
add instead of substract...
Browse files Browse the repository at this point in the history
  • Loading branch information
JPMoresmau committed Jul 15, 2013
1 parent 0a2989e commit ff0747d
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -55,7 +55,7 @@ public static String getHaskellWord(final String line,final int offset){
if (region == null) {
return null;
}
return line.substring( region.getOffset(), region.getLength()-region.getOffset() );
return line.substring( region.getOffset(), region.getLength()+region.getOffset() );
}

private static boolean isHaskellWordChar(final char c){
Expand Down

0 comments on commit ff0747d

Please sign in to comment.