Fix debolding with caret at end but invisible whitespace after