This commit fixes incorrect coloring for items that contain zero-width characters. It also makes ellipsis coloring consistent when text is trimmed from either the left or the right. Fix #4620 Close #4646