Fixed the handling of long lines

Hi. My 2-cents for this amazing plugin. So far it doesn't work well with long lines. I've fixed this.

![slice 1](https://cloud.githubusercontent.com/assets/226224/3787916/1521a56e-1a42-11e4-8717-f8b456be1f25.png)