fixed char position in line
 done issue #287
Merge pull request #298 from asvitenkov/master

done issue #287