prevent line jumping
Merge pull request #2 from zigomir/master

prevent line from jumping too far away