In some cases, not all characters of a text selection were painted.