There is an issue with cursor behavior when color is in the end of the line. When you put cursor in the end of the such line it jumps on several positions behind. There is no problem when color is not in the end of the line.
Bug demonstration: