Fix where the highlight is made if it spans multiple lines

This fixes highlights that span multiple lines because the highlight range was not being calculated correctly for subsequent lines.

[Apologies, my original PR (#136) introduced this bug]