Fix #54: Non-layered highlights for selection cause an extra character to be painted as in 'selected' region.