Fix characters being duplicated at the wrap point of extremely long tokens.

This is nowhere near as severe as the last bug was - it's a cosmetic issue, really - but it was still worth fixing.