RichTextBox: Invalid layout setting the position to the end of the line insetting text and performing undo operation.
Invalid layout setting the position to the end of the line insetting text and performing undo operation. In some cases, this causes NullRefenceException or ArgumentOutOfRangeException.