Fix for a lock-up in CodeEditorComponent when deleting certain sets of lines.