Correctly delete first line i RichTextBox

closes #324