fixes #10686 infinite loop when entering [COLOR in an edit control