Improved handling of styles in the edit control, including detecting changes of style and correcting handling of inconsistant styles.