Fix tab insertion with conditional wrapping.